jb
Member
I have following formula in some columns of my excel sheet. Where I am using a column value in b7, c7 and so on which contains name of a sheet. This b7, c7 and so on contains alt+enter key so i have used clean function. now to make this formula generalized, I have used address and row function. I have used 2 in column part as fixed value. I want to use formula to generate value 2. In some another sheet same formula is to be used where instead of 2, 3 will come.
To generate value 2,3 and so on there is a rule. Cell A5 of all sheets contains name of a day. e.g MONDAY, TUESDAY etc. Rule is: if A5=MONDAY then 2 will come in formula. For TUESDAY 3 will come and so on. If I am trying to replace nested if for generating value 2,3, upto 7 then it gives me an error regarding more levels of parenthesis. I am not allowed to add anything on any sheet except revising this formula. Is there any other way to do this?
=IF(INDIRECT(CLEAN(B$7)&"!"&ADDRESS(ROW(),2))="","",INDIRECT(CLEAN(B$7)&"!"&ADDRESS(ROW(),2)))
To generate value 2,3 and so on there is a rule. Cell A5 of all sheets contains name of a day. e.g MONDAY, TUESDAY etc. Rule is: if A5=MONDAY then 2 will come in formula. For TUESDAY 3 will come and so on. If I am trying to replace nested if for generating value 2,3, upto 7 then it gives me an error regarding more levels of parenthesis. I am not allowed to add anything on any sheet except revising this formula. Is there any other way to do this?
=IF(INDIRECT(CLEAN(B$7)&"!"&ADDRESS(ROW(),2))="","",INDIRECT(CLEAN(B$7)&"!"&ADDRESS(ROW(),2)))