Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
cindyb
 
Posts: n/a
Default IF(AND) function?

Does Excel have the ability to calculate the following"

I have a calculated value in cell A51.

If that calculated value is in the range of numbers in the first column
below, I need a formula for Excel to return the value in the second column
below to cell A60.

0 - 500,000 250
500,001 -750,000 300
750,001 - 1,000,000 350
1,000,001 - up 400

Any help is greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default IF(AND) function?

Try something like this:

With this:
________Col_A______Col_B
Row_1___0_________250
Row_2___500,001___300
Row_3___750,001___350
Row_4___1,000,001__400

And a value in A51
A60: =VLOOKUP(A51,A1:B4,2,1)


Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"cindyb" wrote:

Does Excel have the ability to calculate the following"

I have a calculated value in cell A51.

If that calculated value is in the range of numbers in the first column
below, I need a formula for Excel to return the value in the second column
below to cell A60.

0 - 500,000 250
500,001 -750,000 300
750,001 - 1,000,000 350
1,000,001 - up 400

Any help is greatly appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default IF(AND) function?

No need for that, use lookup

=LOOKUP(A51,{0;500001;750001;1000001},{250;300;350 ;400})

if A51 can be blank you might want to use

=IF(A51="",""LOOKUP(A5,{0;500001;750001;1000001},{ 250;300;350;400}))

--
Regards,

Peo Sjoblom

Portland, Oregon




"cindyb" wrote in message
...
Does Excel have the ability to calculate the following"

I have a calculated value in cell A51.

If that calculated value is in the range of numbers in the first column
below, I need a formula for Excel to return the value in the second
column
below to cell A60.

0 - 500,000 250
500,001 -750,000 300
750,001 - 1,000,000 350
1,000,001 - up 400

Any help is greatly appreciated.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default IF(AND) function?

One way, via VLOOKUP

Put in A60:
=IF(OR(A51="",A51<=0),"",VLOOKUP(A51,{0,250;500001 ,300;750001,350;1000001,40
0},2))

The above VLOOKUP carries a "standalone" table_array, so we don't need to
reference the table elsewhere. The IF error traps will ensure that a neat
looking blank: "", is returned (instead of ugly #N/As).
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"cindyb" wrote in message
...
Does Excel have the ability to calculate the following"

I have a calculated value in cell A51.

If that calculated value is in the range of numbers in the first column
below, I need a formula for Excel to return the value in the second

column
below to cell A60.

0 - 500,000 250
500,001 -750,000 300
750,001 - 1,000,000 350
1,000,001 - up 400

Any help is greatly appreciated.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default IF(AND) function?

"cindyb" wrote:
I have a calculated value in cell A51.
If that calculated value is in the range of numbers in the
first column below, I need a formula for Excel to return
the value in the second column below to cell A60.
0 - 500,000 250
500,001 -750,000 300
750,001 - 1,000,000 350
1,000,001 - up 400


Others have suggested a lookup function, which arguably
might be the best approach. If you still prefer an IF()
function, this particular example is not too bad:

=IF(A51 <= 500000, 250,
IF(A51 <= 750000, 300, IF(A51 <= 1000000, 350, 400)))



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
cindyb
 
Posts: n/a
Default IF(AND) function?

Thanks so much for your help! It works!!

"cindyb" wrote:

Does Excel have the ability to calculate the following"

I have a calculated value in cell A51.

If that calculated value is in the range of numbers in the first column
below, I need a formula for Excel to return the value in the second column
below to cell A60.

0 - 500,000 250
500,001 -750,000 300
750,001 - 1,000,000 350
1,000,001 - up 400

Any help is greatly appreciated.

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



All times are GMT +1. The time now is 05:32 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"