How do I search a row for a specific text and return with the column it is in, as in this example

bilalsana

New Member
Joined
Oct 12, 2020
Messages
12
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
  3. Web
I have a sheet for distributing fruits based on the date, making sure they are not repeated in the different halls on the same date, as seen in the picture, I want to see the table below so that I know where that fruit is being served on that day. Importantly the new table would be in Sheet2 (unlike in the example)
tables.jpg
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
like this?
Value01/01/200101/01/200201/01/2003
AppleDinning 1Dinning 3Dinning 4
BananaDinning 2Dinning 1Dinning 2
MangoDinning 4Dinning 4Dinning 3
PeachDinning 3Dinning 3Dinning 3
PearDinning 3Dinning 2Dinning 1
 
Upvote 0
like this?
Value01/01/200101/01/200201/01/2003
AppleDinning 1Dinning 3Dinning 4
BananaDinning 2Dinning 1Dinning 2
MangoDinning 4Dinning 4Dinning 3
PeachDinning 3Dinning 3Dinning 3
PearDinning 3Dinning 2Dinning 1
Yes exactly. But some cells have multiple fruit listed like: Apple,Pear, Banana
 
Upvote 0
As in the above example, if column B has "Apple,Banana" on Jan-01, I would like it to return Dinning 1 in both B9 and B10
 
Upvote 0
As in the above example, if column B has "Apple,Banana" on Jan-01, I would like it to return Dinning 1 in both B9 and B10
Ofcourse there would be no doubling, as in this example. 1 entry would only come once in a row. Dinning 2 would not have Banana in it, unlike in the example
 
Upvote 0
???
Value01/01/200101/01/200201/01/2003
AppleDinning 1Dinning 4
BananaDinning 2Dinning 1Dinning 2
MangoDinning 4Dinning 4
Peach, AppleDinning 3
Peach, MangoDinning 3
PearDinning 2Dinning 1
Pear, PeachDinning 3
 
Upvote 0
Yes. But will it scan fir more than 2 items in the same cell (seperated by commas)?
 
Upvote 0
like this?
Value01/01/200101/01/200201/01/2003
AppleDinning 1Dinning 4
BananaDinning 2Dinning 1Dinning 2
MangoDinning 4Dinning 4
Peach, MangoDinning 3
Peach, Plum, AppleDinning 3
PearDinning 2Dinning 1
Pear, Peach, PlumDinning 3
 
Upvote 0
like this?
Value01/01/200101/01/200201/01/2003
AppleDinning 1Dinning 4
BananaDinning 2Dinning 1Dinning 2
MangoDinning 4Dinning 4
Peach, MangoDinning 3
Peach, Plum, AppleDinning 3
PearDinning 2Dinning 1
Pear, Peach, PlumDinning 3
Screenshot 2020-10-13 011831.jpg

Like this
 
Upvote 0

Forum statistics

Threads
1,214,601
Messages
6,120,467
Members
448,965
Latest member
grijken

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