SOLVED

Excel

%3CLINGO-SUB%20id%3D%22lingo-sub-3374169%22%20slang%3D%22en-US%22%3EExcel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3374169%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screen%20Shot%202022-05-14%20at%204.51.56%20pm.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371629i84329ACF54390319%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screen%20Shot%202022-05-14%20at%204.51.56%20pm.png%22%20alt%3D%22Screen%20Shot%202022-05-14%20at%204.51.56%20pm.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20need%20to%20change%20the%20%222%22%20(underlined)%20that%20is%20in%20the%20formula%20into%20another%20formula%20using%20the%20IF%20function%20so%20I%20can%20copy%20it%20over%20the%20spreadsheet%20without%20just%20typing%20%223%22%20or%20%224%22%20like%20i%20have%20currently.%20How%20can%20I%20do%20this%3F%20Does%20this%20make%20sense%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3374169%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%20on%20Mac%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3374240%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3374240%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1390101%22%20target%3D%22_blank%22%3E%40eloisemildenhall%3C%2FA%3E%26nbsp%3BYou%20could%20replace%20the%202%20with%26nbsp%3B%3CEM%3E%3CSTRONG%3ECOLUMN()-3%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3EBut%20this%20is%20not%20very%20elegant.%20Perhaps%20better%20to%26nbsp%3Breplace%20the%202%20with%26nbsp%3B%3CEM%3E%3CSTRONG%3EMATCH(E%242%2C%24I%242%3A%24L%242%2C0)%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3374294%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3374294%22%20slang%3D%22en-US%22%3EThis%20worked!!%20Thank%20you%20so%20much%3C%2FLINGO-BODY%3E
New Contributor

Screen Shot 2022-05-14 at 4.51.56 pm.png

I need to change the "2" (underlined) that is in the formula into another formula using the IF function so I can copy it over the spreadsheet without just typing "3" or "4" like i have currently. How can I do this? Does this make sense? 

2 Replies
best response confirmed by eloisemildenhall (New Contributor)
Solution

@eloisemildenhall You could replace the 2 with COLUMN()-3

But this is not very elegant. Perhaps better to replace the 2 with MATCH(E$2,$I$2:$L$2,0)

 

This worked!! Thank you so much