Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default "LOOKUP" within a condition?

I have a LOOKUP that works great (Thanks Biff!!!). Now I need to two
seperate "LOOKUP" commands depeneding on contents of a different field.

My exising LOOKUP, which works:
=LOOKUP(TODAY()-INT(AK2), {1,30,60,90,120},{"0-29","30-59", "60-89",
"90-119","Over 120})

(AK2 is the date the row was created in a database, the earliest date is 15
Sep 06).

I now need to look at the value in "V2" to look for "Incident", if so, my
scale will be different. By when I try my "guess", it doesn't work (figure
that!?). The problem is, while scrolling through the formula, I can't ever
get to the "value if true". Here's my feable attempt:

=IF(V2="Incident", LOOKUP(TODAY()-INT(AK2),{1,4,14,"Over
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})))

Appreciate any assistance,

KSL.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 747
Default "LOOKUP" within a condition?

Try:

=IF(V2="Incident", LOOKUP(TODAY()-INT(AK2),{1,4,14,"Over
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"}))

Greg

"Leonhardtk" wrote:

I have a LOOKUP that works great (Thanks Biff!!!). Now I need to two
seperate "LOOKUP" commands depeneding on contents of a different field.

My exising LOOKUP, which works:
=LOOKUP(TODAY()-INT(AK2), {1,30,60,90,120},{"0-29","30-59", "60-89",
"90-119","Over 120})

(AK2 is the date the row was created in a database, the earliest date is 15
Sep 06).

I now need to look at the value in "V2" to look for "Incident", if so, my
scale will be different. By when I try my "guess", it doesn't work (figure
that!?). The problem is, while scrolling through the formula, I can't ever
get to the "value if true". Here's my feable attempt:

=IF(V2="Incident", LOOKUP(TODAY()-INT(AK2),{1,4,14,"Over
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})))

Appreciate any assistance,

KSL.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default "LOOKUP" within a condition?

Perfect! Looking at it now, its so obvious!

Thanks,
KSL


"Greg Wilson" wrote:

Try:

=IF(V2="Incident", LOOKUP(TODAY()-INT(AK2),{1,4,14,"Over
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"}))

Greg

"Leonhardtk" wrote:

I have a LOOKUP that works great (Thanks Biff!!!). Now I need to two
seperate "LOOKUP" commands depeneding on contents of a different field.

My exising LOOKUP, which works:
=LOOKUP(TODAY()-INT(AK2), {1,30,60,90,120},{"0-29","30-59", "60-89",
"90-119","Over 120})

(AK2 is the date the row was created in a database, the earliest date is 15
Sep 06).

I now need to look at the value in "V2" to look for "Incident", if so, my
scale will be different. By when I try my "guess", it doesn't work (figure
that!?). The problem is, while scrolling through the formula, I can't ever
get to the "value if true". Here's my feable attempt:

=IF(V2="Incident", LOOKUP(TODAY()-INT(AK2),{1,4,14,"Over
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})))

Appreciate any assistance,

KSL.

Reply
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
"countif" and "and" condition laingram Excel Worksheet Functions 2 June 28th 07 03:34 PM
Lookup using 2 cells as the "X" and "Y" coordinates.... kcsims Excel Worksheet Functions 1 December 15th 06 09:06 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM


All times are GMT +1. The time now is 03:17 AM.

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

About Us

"It's about Microsoft Excel"