#1   Report Post  
Posted to microsoft.public.excel.misc
PJS PJS is offline
external usenet poster
 
Posts: 23
Default lookup command

Hi ...

I have this formula, which works fine....

=IF(I1<50000,LOOKUP(I1,{30000,40000},{"0.002","0.0 03"}),IF(I1<100000,LOOKUP(I1,{80000,90000},{"0.002 ","0.003"})))

suppose I would like to replace 30000,40000,80000 and 90000 with actual cell
references, i.e. in Cell A1 = 30000, thus allowing the lookup value to be
dynamic.

Any ideas?

Thanks,

PJS
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default lookup command

=IF(I1<50000,LOOKUP(I1,{30000,40000},{"0.002","0.0 03"}),IF(I1<100000,LOOKUP(I1,{80000,90000},{"0.002 ","0.003"})))

That's kind of an unusual formula for what it's doing.

You're looking at 2 ranges of numbers:

30,000 to 49,999
80,000 to 99,999

Anything entered in I1 that is not within one of those ranges will return
either an error or FALSE.

So, does that mean the entry in I1 is limited to a number in one of those
two ranges?

--
Biff
Microsoft Excel MVP


"PJS" wrote in message
...
Hi ...

I have this formula, which works fine....

=IF(I1<50000,LOOKUP(I1,{30000,40000},{"0.002","0.0 03"}),IF(I1<100000,LOOKUP(I1,{80000,90000},{"0.002 ","0.003"})))

suppose I would like to replace 30000,40000,80000 and 90000 with actual
cell
references, i.e. in Cell A1 = 30000, thus allowing the lookup value to be
dynamic.

Any ideas?

Thanks,

PJS



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
command code ( GOTO command) in formula calan New Users to Excel 1 June 11th 09 09:44 AM
Referencing a Rounded number in a LOOKUP command sCOTT Excel Discussion (Misc queries) 1 December 19th 08 08:54 PM
Pivot Table Error Message - "Command Text not set for command obje Jeff Divian Excel Discussion (Misc queries) 0 November 7th 07 10:26 PM
LOOKUP Command Issue VegasBurger Excel Worksheet Functions 1 August 2nd 06 07:35 PM
LOOKUP command excelnewbie Excel Worksheet Functions 4 September 17th 05 06:53 AM


All times are GMT +1. The time now is 07:08 PM.

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"