Index / Match

The Grim Discovery

Board Regular
Joined
Jan 23, 2015
Messages
232
Animal
Phobic
Rat
Yes
Snake
No
Spider
Unknown
Scorpion
Rat
?
Snake
Rat
?
Spider

<tbody>
</tbody>

Hello, how do I get all instances in Col A of 'Rat' to show in Col B as "yes"? This needs to be dynamic as the Col B could also be "no". I suppose I'm asking how can value in Col A have its associated value in Col B repeated wherever it is found? I'm INDEX/MATCHING myself to a standstill.

Thanks in advance.
 

Gerald Higgins

Well-known Member
Joined
Mar 26, 2007
Messages
9,115
How are you determining that the first value for "Rat" is actually "Yes" ?
Are you just manually typing this into Col B ?
Or is this information held somewhere else ? (this would be my preferred solution I think)
 

oldbrewer

Board Regular
Joined
Apr 11, 2010
Messages
10,985
AnimalPhobic
RatYes
SnakeNo
SpiderUnknown
Scorpionyes
Ratyes
Snakeno mytable
Ratyes
Spiderunknown batno
batnobeeyes
beeyesratyes
batnoscorpionyes
snakeno
spiderunknown
the yes by scorpion derived by
=VLOOKUP(A6,mytable,2)

<colgroup><col width="64" span="12" style="width:48pt"> </colgroup><tbody>
</tbody>
 

oldbrewer

Board Regular
Joined
Apr 11, 2010
Messages
10,985
GIVEN
AnimalPhobic
RatYes
SnakeNo
snakeUnknown
scorpionyes
mytable
batno
beeyes
ratyes
scorpionyes
snakeno
spiderunknown
the yes by scorpion derived by
=VLOOKUP(A6,mytable,2)
Scorpionyes
Ratyes
Snakeno
Ratyes
Spiderunknown
batno
beeyes
batno

<colgroup><col width="64" span="12" style="width:48pt"> </colgroup><tbody>
</tbody>
 

Forum statistics

Threads
1,081,513
Messages
5,359,227
Members
400,523
Latest member
ExcelNewbie98

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top