#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default IF, THEN HELP

I have a rate chart which covers different values, such as:

If the rate is between 32.00 and 33.99 then the cost is multiplied by
38% (1.38).
If the rate is between 34.00 and 35.99 then the cost is multiplied by
37% (1.37)

I want excel to automatically give me the resulting figure when I put
in the rate, so that when it sees $32.23, it knows to multiply by 1.38
and automatically give me the resulting value of 44.32.

Anyone out there that can help, I appreciate it.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default IF, THEN HELP

Hi,
Let's assume you enter 32 in A1 and want the result in B1, so in B1 enter

=if(and(A1=32,A1<=33.99),A1*1.38,if(and(A1=34,A1 <=35.99),A1*1.37))

you didn't explaing what happens if rate is outside of that ranges, if you
want a blank space use

=if(and(A1=32,A1<=33.99),A1*1.38,if(and(A1=34,A1 <=35.99),A1*1.37,""))

"Grammie" wrote:

I have a rate chart which covers different values, such as:

If the rate is between 32.00 and 33.99 then the cost is multiplied by
38% (1.38).
If the rate is between 34.00 and 35.99 then the cost is multiplied by
37% (1.37)

I want excel to automatically give me the resulting figure when I put
in the rate, so that when it sees $32.23, it knows to multiply by 1.38
and automatically give me the resulting value of 44.32.

Anyone out there that can help, I appreciate it.
.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default IF, THEN HELP

"Grammie" wrote:
If the rate is between 32.00 and 33.99 then the cost
is multiplied by 38% (1.38).
If the rate is between 34.00 and 35.99 then the cost
is multiplied by 37% (1.37)

I want excel to automatically give me the resulting
figure when I put in the rate, so that when it sees
$32.23, it knows to multiply by 1.38 and automatically
give me the resulting value of 44.32.


(Note: 32.23*1.38 is about 44.48, not 44.32. If the rate is really
1.375%, do not write 38%.)

If you have only those two ranges and rates, then a simple IF
expression would suffice, to wit (where A1 contains the original
cost):

=ROUND(A1*IF(A1<34,1.38,1.37), 2)

ROUND is necessary to ensure a dollars-and-cents result without
fractional pennies.

But I suspect you have many more ranges and rates. In that case, it
would be better to set up lookup function. There are several ways to
do that. One way:

=ROUND(A1*LOOKUP(A1,{32,34},{1.38,1.37}), 2)


----- original message -----



"Grammie" wrote in message news:e58c9d63-9af1-463a-
...
I have a rate chart which covers different values, such as:

If the rate is between 32.00 and 33.99 then the cost is multiplied by
38% (1.38).
If the rate is between 34.00 and 35.99 then the cost is multiplied by
37% (1.37)

I want excel to automatically give me the resulting figure when I put
in the rate, so that when it sees $32.23, it knows to multiply by 1.38
and automatically give me the resulting value of 44.32.

Anyone out there that can help, I appreciate it.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default IF, THEN HELP

Hi,

In B2:B3, enter 32 and 34. In C2:C3, enter 1.38 and 1.37. In B5, enter
32.23. In C5, use the following formula

=B5*vlookup(B5,$B$2:$C$3,2)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Grammie" wrote in message
...
I have a rate chart which covers different values, such as:

If the rate is between 32.00 and 33.99 then the cost is multiplied by
38% (1.38).
If the rate is between 34.00 and 35.99 then the cost is multiplied by
37% (1.37)

I want excel to automatically give me the resulting figure when I put
in the rate, so that when it sees $32.23, it knows to multiply by 1.38
and automatically give me the resulting value of 44.32.

Anyone out there that can help, I appreciate it.




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default IF, THEN HELP

On Apr 29, 10:39*am, joeu2004 wrote:
"Grammie" wrote:
If the rate is between 32.00 and 33.99 then the cost
is multiplied by 38% (1.38).
If the rate is between 34.00 and 35.99 then the cost
is multiplied by 37% (1.37)


I want excel to automatically give me the resulting
figure when I put in the rate, so that when it sees
$32.23, it knows to multiply by 1.38 and automatically
give me the resulting value of 44.32.


(Note: *32.23*1.38 is about 44.48, not 44.32. *If the rate is really
1.375%, do not write 38%.)

If you have only those two ranges and rates, then a simple IF
expression would suffice, to wit (where A1 contains the original
cost):

=ROUND(A1*IF(A1<34,1.38,1.37), 2)

ROUND is necessary to ensure a dollars-and-cents result without
fractional pennies.

But I suspect you have many more ranges and rates. *In that case, it
would be better to set up lookup function. *There are several ways to
do that. *One way:

=ROUND(A1*LOOKUP(A1,{32,34},{1.38,1.37}), 2)

----- original message -----

"Grammie" wrote in message news:e58c9d63-9af1-463a-

...



I have a rate chart which covers different values, such as:


If the rate is between 32.00 and 33.99 then the cost is multiplied by
38% (1.38).
If the rate is between 34.00 and 35.99 then the cost is multiplied by
37% (1.37)


I want excel to automatically give me the resulting figure when I put
in the rate, so that when it sees $32.23, it knows to multiply by 1.38
and automatically give me the resulting value of 44.32.


Anyone out there that can help, I appreciate it.- Hide quoted text -


- Show quoted text -


Thank you for your answer. I didn't need to round the number and you
were correct the actual is 1.375 and it makes a difference.
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 06:00 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"