Can someone help with telling me what the formula would be to look for the value in A4 in the table F1:I25. Then when an exact match is found then return the column header of that column to C4.
Book1.xlsx
Can someone help with telling me what the formula would be to look for the value in A4 in the table F1:I25. Then when an exact match is found then return the column header of that column to C4.
Book1.xlsx
Last edited by Troy73; 01-05-2018 at 09:30 AM.
Please take a moment to re-read forum rule #1 and then amend your thread title to something that better explains your problem. Changing your thread title is not optional, which means you must change it. Thanks!
- Use concise, accurate thread titles.
- Your post title should describe your problem, not your anticipated solution.
- Use terms appropriate to a Google search - poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice tell us nothing.
- Responding to a request to change your thread title by doing so is mandatory.
To change a title go to your first post, click EDIT then Go Advanced and change your title.
No help to be offered, please, until the OP complies with this request.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Try:
=IFERROR(INDEX($F$1:$I$1,AGGREGATE(15,6,COLUMN($F$2:$I$25)/($F$2:$I$25=A5),1)-5),"")
Last edited by Phuocam; 01-05-2018 at 09:31 AM.
Thanks for updating the thread title. It's fine now.
=index($f$1:$i$1,aggregate(15,6,column($f$2:$i$25)/($f$2:$i$25=$a2),1)-5)
Use this:
=IFERROR(INDEX($F$1:$I$1,SUMPRODUCT(($F$2:$I$25=A2)*(COLUMN($F$2:$I$25)-COLUMN($F$2)+1))),"")
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.
Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh
I'm sorry guys, but I didn't include the entire spreadsheet just a concept of what I wanted done then I figured that I could manipulate the columns and rows for each column that is labels 'Move To' but I cannot figure it out. Really sorry for the bother but please look at the suggested formula that I put in D6. Every time that "WRONG LINE" is under the column 'Correct Line?' then under the 'Move To' columns I need this formula to return the column header where it is actually classified under P4:S41. I hope I'm clear enough.
Book1.xlsx
Try
in D6
=IFERROR(INDEX($P$4:$S$4,SUMPRODUCT(($P$5:$S$41=B6)*(COLUMN($P$5:$S$41)-COLUMN($P$5)+1))),"")
...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
A non-array (ordinary) formula:
=IF(C5="Wrong Line",IFERROR(INDEX($P$4:$S$4,SUMPRODUCT(($P$5:$S$28=B5)*(COLUMN($P$5:$S$28)-COLUMN($P$5)+1))),"No Match"),"")
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks