• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Excel: Need to find a matching cell and copy the cell next to it

Say my grid is something like:

Dog 10
Dog
Dog
Cat 55
Cat
Cat
Mouse
Mouse
Horse 20
Horse
Pikachu


I need the number 10 next to each dog, and a 55 next to each cat, and a 20 next to each horse.

I've tried different IF functions and vlookup doesn't seem to be the right way to go about it.

I need my output to be:

Dog 10
Dog 10
Dog 10
Cat 55
Cat 55
Cat 55
Mouse
Mouse
Horse 20
Horse 20
Pikachu

Any way to do this?
 
Well I think this may have been a lot more simple than I was making it out to be.

Formula was just:

IF(A2=A1,B1,"EMPTY")

And then just used the find blank cell command and filled in the empty cells in the same column. My output currently is:

Dog 10
Dog 10
Dog 10
Cat 55
Cat 55
Mouse EMPTY
Mouse EMPTY
Horse 20
Horse 20
Pikachu EMPTY

I have to do some spot checking, but it seems to be ok.
 
Back
Top