Using string in table to decide if a value should be taken from table header

LGAcer

New Member
Joined
Dec 12, 2022
Messages
2
Office Version
  1. 2013
Platform
  1. Windows
r/excel - Grab value column header from list depending on value
The above shows a table of mirrored data. You have apple, orange, pear and banana headers going both horizontally and vertically. A 'o' symbolises that you prefer that fruit compared to whatever it's being compared to, looking at the data from left to right. For example, the 'o' in cell D3 shows that you prefer apples to oranges. If D3 is an 'o', then C4 has to be a 'x', because you are comparing oranges to apples instead on that cell, and we already know we prefer apples to oranges.

The values in column H are what I would like to generate, but am doing manually currently. It plucks out, from the row, the fruits that were preferred to whatever fruit we are comparing to. For example, row 4 is us comparing oranges to other fruits. We prefer apples and pears to oranges, so cell H4 writes 'Apple, pear'. In row 3, we preferred apples to all other fruit, so there is no value there.

Is it possible to automate what I have in column H? I am using excel 2013 and do not have access to textjoin.

Thank you.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Using string in table to decide if a value should be taken from table header
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top