View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier Roger Govier is offline
external usenet poster
 
Posts: 2,886
Default Lookup of identical values?

Hi
I can't see how to do it in one pass, but if you used helper columns.
In C1
=VLOOKUP(A1,table_text,2,0)
in D1
=CHOOSE(B1,"raise","cease")
in E2
=IF(C2=C3,"",C2&","&D1&","&D2)
Copy the formulae down as far as required


--
Regards

Roger Govier


"TobbeGardner"
wrote in
message
news:TobbeGardner.2adasp_1151926808.0582@excelforu m-nospam.com...

Hi,

I am sorry, I was not clear enought...
123 is in one column A and 1 or 2 is in column B.

Your solution, if I understand it, works fine if I was looking for
"123,1" in a single cell.

Is there away to solve the problem with the data in different columns?

Regards,
Tobbe G


--
TobbeGardner
------------------------------------------------------------------------
TobbeGardner's Profile:
http://www.excelforum.com/member.php...o&userid=35924
View this thread:
http://www.excelforum.com/showthread...hreadid=557192