Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Oopps!

=IF(V2="Incident",
LOOKUP(TODAY()-INT(AK2),{1,4,14,30},{"0-7","8-13","15-29","Over
30"}),LOOKUP(TODAY()-INT(AK2),
{1,30,60,90,120},{"0-29","30-59","60-89","90-119","Over 120"}))

works fine for me.

With AK2=01/08/07 (1st August) and V2="Incident", I get result of "15-29";
if V2 is blank, I get result of "0-29".



"Leonhardtk" wrote:

My mistake. I was in my original posting, and thought my "new" question
would be nested under my original question. My original question had the
subject "LOOKUP" within a condition?"

Thanks,

KSL

"Pete_UK" wrote:

So, are you asking a question now? I haven't seen your earlier posting
(yet - I read them in the order of most recent first when I log on),
so I haven't a clue what you are talking about. It probably would have
been better to have added this as a reply to your first posting,
rather than start a new one with little detail in it.

Pete

On Aug 28, 9:12 pm, Leonhardtk
wrote:
I apologize. I have two mistakes in this my earlier question:

The problem is I can't ever get the "value if FALSE". The formulate treats
everything after the first lookup as "value if TRUE".

ALso, in the first Look up I have {1,4,15,"over 30"}, but that should have
been {1,7,14,30} (Again I apologize, but my spreadsheet is on another
network with no Internet access, so I have write down the formula and retype
in this window (which may also mean my paranthesis may not be correct
either!?"

KSL.




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"