I have been racking my brain on this:
If I type "Y" in cell A2 on sheet1 then I want excel copy cell B2 on sheet1 onto D4 on sheet2.
Basicially I want to choose y and excel will copy the text beside the y to another page. But I have a few options that can be y, but only one can be at any time.
Do you like Fruit
Y Apple
N Grapes
N Oranges
I've done it before, cannot remeber how!
Thanks in advance
Hi
Maybe in cell D2 of sheet2 you could enter
=IF(Sheet1!A2="","",VLookup(Sheet1!A2,Sheet1!A2:B4,2,0))
--
Regards
Roger Govier
Microsoft Excel MVP
Almost, but not quite. It is only pulling the "Y" from cell A2. I might have a Y in A2, A3, or A4, and I need to pull the text in the left of those cells to the a different sheet if a "Y" is present.
Hi
Sorry, I should have realised that.
Use Index Match instead
=IF(Sheet1!A2="","",Index(Sheet1!B2:B4,Match("Y",Sheet1!A2:A4,0)))
--
Regards
Roger Govier
Microsoft Excel MVP
Your doing better than I was.... but still not working.
Works in A2 only.
There is different text beside A3 amd A4, and when I put a "Y" in A3 or A4 or sheet1 it does not copy the text beside A3 or A4 onto D2 of sheet2
Works! Thanks a mil!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks