kiwikiki718
Board Regular
- Joined
- Apr 7, 2017
- Messages
- 80
- Office Version
- 365
- Platform
- Windows
Hi I was wondering there was a formula that I can use where one of the references could be dynamic based upon the column the formula is in.
for example I have the below formula in column B
=IF(MONDAY!J3=(TEXTBEFORE(B1,"_")),MONDAY!K3,IF(MONDAY!J4=(TEXTBEFORE(B1,"_")),MONDAY!K4,IF(MONDAY!J5=(TEXTBEFORE(B1,"_")),MONDAY!K5,IF(MONDAY!J6=(TEXTBEFORE(B1,"_")),MONDAY!K6,IF(MONDAY!J7=(TEXTBEFORE(B1,"_")),MONDAY!K7,IF(MONDAY!J8=(TEXTBEFORE(B1,"_")),MONDAY!K8,IF(MONDAY!J9=(TEXTBEFORE(B1,"_")),MONDAY!K9,IF(MONDAY!J10=(TEXTBEFORE(B1,"_")),MONDAY!K10,IF(MONDAY!J11=(TEXTBEFORE(B1,"_")),MONDAY!K11,IF(MONDAY!J12=(TEXTBEFORE(B1,"_")),MONDAY!K12,""))))))))))
Instead of referencing B1 I want to know I can replace B1 to reflect whatever column the formula is in. so if the above formula was in Column C then "B1" would show C1 within the formula.
thanks in advance
for example I have the below formula in column B
=IF(MONDAY!J3=(TEXTBEFORE(B1,"_")),MONDAY!K3,IF(MONDAY!J4=(TEXTBEFORE(B1,"_")),MONDAY!K4,IF(MONDAY!J5=(TEXTBEFORE(B1,"_")),MONDAY!K5,IF(MONDAY!J6=(TEXTBEFORE(B1,"_")),MONDAY!K6,IF(MONDAY!J7=(TEXTBEFORE(B1,"_")),MONDAY!K7,IF(MONDAY!J8=(TEXTBEFORE(B1,"_")),MONDAY!K8,IF(MONDAY!J9=(TEXTBEFORE(B1,"_")),MONDAY!K9,IF(MONDAY!J10=(TEXTBEFORE(B1,"_")),MONDAY!K10,IF(MONDAY!J11=(TEXTBEFORE(B1,"_")),MONDAY!K11,IF(MONDAY!J12=(TEXTBEFORE(B1,"_")),MONDAY!K12,""))))))))))
Instead of referencing B1 I want to know I can replace B1 to reflect whatever column the formula is in. so if the above formula was in Column C then "B1" would show C1 within the formula.
thanks in advance