binaryfingers
Technical User
- Jul 26, 2002
- 118
Hi
Is there a way of being able to use a text value as part of a formula
I have the following
VLOOKUP($B308,INDIRECT("'["&TEXT(C$7,"MMMM YY")&".xls]"&$B$307&$A$294&"'!"&'Master data'!$F$4),MATCH($A$293,INDIRECT("'["&TEXT(C$7,"MMMM YY")&".xls]"&$B$307&$A$294&"'!"&'Master data'!$E$4),0),FALSE)
That I would like to have in a cell as a text description.
I would then like to reference this text as the first part of a formula eg =A1, if the text above was in cell A1
The main reason is that I need to put in several versions of the above and I am now running out of formula space.
This is the current formula, that I need to add another similar clause too, hence why I would like to refer to different cells for each 'part' of the formula
=VLOOKUP($B308,INDIRECT("'["&TEXT(D$7,"MMMM YY")&".xls]"&$B$307&$A$294&"'!"&'Master data'!$F$4),MATCH($A$293,INDIRECT("'["&TEXT(D$7,"MMMM YY")&".xls]"&$B$307&$A$294&"'!"&'Master data'!$E$4),0),FALSE)+IF(ISERROR(VLOOKUP($B308,INDIRECT("'["&TEXT(D$7,"MMMM YY")&".xls]"&$B$307&$A$294&"'!"&'Master data'!$F$4),MATCH($A$292,INDIRECT("'["&TEXT(D$7,"MMMM YY")&".xls]"&$B$307&$A$294&"'!"&'Master data'!$E$4),0),FALSE)),0,VLOOKUP($B308,INDIRECT("'["&TEXT(D$7,"MMMM YY")&".xls]"&$B$307&$A$294&"'!"&'Master data'!$F$4),MATCH($A$292,INDIRECT("'["&TEXT(D$7,"MMMM YY")&".xls]"&$B$307&$A$294&"'!"&'Master data'!$E$4),0),FALSE))-VLOOKUP($B308,INDIRECT("'["&TEXT(D$7,"MMMM YY")&".xls]"&$B$307&$A$294&"'!"&'Master data'!$F$4),MATCH($A$307,INDIRECT("'["&TEXT(D$7,"MMMM YY")&".xls]"&$B$307&$A$294&"'!"&'Master data'!$E$4),0),FALSE)
Hope this makes sense.
Thanks,
Is there a way of being able to use a text value as part of a formula
I have the following
VLOOKUP($B308,INDIRECT("'["&TEXT(C$7,"MMMM YY")&".xls]"&$B$307&$A$294&"'!"&'Master data'!$F$4),MATCH($A$293,INDIRECT("'["&TEXT(C$7,"MMMM YY")&".xls]"&$B$307&$A$294&"'!"&'Master data'!$E$4),0),FALSE)
That I would like to have in a cell as a text description.
I would then like to reference this text as the first part of a formula eg =A1, if the text above was in cell A1
The main reason is that I need to put in several versions of the above and I am now running out of formula space.
This is the current formula, that I need to add another similar clause too, hence why I would like to refer to different cells for each 'part' of the formula
=VLOOKUP($B308,INDIRECT("'["&TEXT(D$7,"MMMM YY")&".xls]"&$B$307&$A$294&"'!"&'Master data'!$F$4),MATCH($A$293,INDIRECT("'["&TEXT(D$7,"MMMM YY")&".xls]"&$B$307&$A$294&"'!"&'Master data'!$E$4),0),FALSE)+IF(ISERROR(VLOOKUP($B308,INDIRECT("'["&TEXT(D$7,"MMMM YY")&".xls]"&$B$307&$A$294&"'!"&'Master data'!$F$4),MATCH($A$292,INDIRECT("'["&TEXT(D$7,"MMMM YY")&".xls]"&$B$307&$A$294&"'!"&'Master data'!$E$4),0),FALSE)),0,VLOOKUP($B308,INDIRECT("'["&TEXT(D$7,"MMMM YY")&".xls]"&$B$307&$A$294&"'!"&'Master data'!$F$4),MATCH($A$292,INDIRECT("'["&TEXT(D$7,"MMMM YY")&".xls]"&$B$307&$A$294&"'!"&'Master data'!$E$4),0),FALSE))-VLOOKUP($B308,INDIRECT("'["&TEXT(D$7,"MMMM YY")&".xls]"&$B$307&$A$294&"'!"&'Master data'!$F$4),MATCH($A$307,INDIRECT("'["&TEXT(D$7,"MMMM YY")&".xls]"&$B$307&$A$294&"'!"&'Master data'!$E$4),0),FALSE)
Hope this makes sense.
Thanks,