View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Get data with certain condition

See also your earlier thread, where I've responded to you as below:
---------------------------
"TQ" wrote:
How about show "-" replace of "#NA" if get nothing from certain column ?


Trap the expression's return with an IF(ISNA(...),... construct
In A15:
=IF(ISNA(LOOKUP(2,1/(A1:A14<""),A1:A14)),"-",
LOOKUP(2,1/(A1:A14<""),A1:A14))

Spare me a moment to press the "Yes" button below, won't you?
I'm under the weather of late, need the "greens" to perk me up
------------------
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---