Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
mmr
 
Posts: n/a
Default I need assistance setting up a "IF" statement

Can you create an if statement for me?

If a4=<75,001 fee=2.00
if a4=75,001 but <125001 fee=1.75
if a4=125001 but<250001 fee=1.50
if a4=250001 but<1000001 fee=1.25
if a4=1000001 fee=1.00

  #2   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi

One way, without IF statements
=1+(A4<1000001)*0.25+(A4<250001)*0.25+(A4<125001)* 0.25+(A4<75001)*0.25
Regards

Roger Govier


mmr wrote:
Can you create an if statement for me?

If a4=<75,001 fee=2.00
if a4=75,001 but <125001 fee=1.75
if a4=125001 but<250001 fee=1.50
if a4=250001 but<1000001 fee=1.25
if a4=1000001 fee=1.00

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

=2-(0.25*(MATCH(A4,{0,75002,125002,250002,1000001},1)-1))

--
HTH

Bob Phillips

"mmr" wrote in message
...
Can you create an if statement for me?

If a4=<75,001 fee=2.00
if a4=75,001 but <125001 fee=1.75
if a4=125001 but<250001 fee=1.50
if a4=250001 but<1000001 fee=1.25
if a4=1000001 fee=1.00



  #4   Report Post  
KL
 
Posts: n/a
Default

Hi,

Try these:

=LOOKUP(A4,{0,75000,125000,250000,100000},{2,1.75, 1.5,1.25,1})
=INDEX({2,1.75,1.5,1.25,1},MATCH(A4,{0,75000,12500 0,250000,100000}))
=CHOOSE(MATCH(A4,{0,75000,125000,250000,100000}),2 ,1.75,1.5,1.25,1)
=VLOOKUP(A4,{0,2;75000,1.75;125000,1.5;250000,1.25 ;100000,1},2)

the fixed arrays can also be replaced by references to ranges, e.g. if you
had the following table in range [C1:D5]
[C] [D]
------------------
0 2

75000 1.75

125000 1.5

250000 1.25

100000 1


then:

=LOOKUP(A4,C1:C5,D1:D5)
=INDEX(D1:D5,MATCH(A4,C1:C5))
=CHOOSE(MATCH(A4,C1:C5),2,1.75,1.5,1.25,1)
=VLOOKUP(A4,C1:D5,2)

Regards,
KL


"mmr" wrote in message
...
Can you create an if statement for me?

If a4=<75,001 fee=2.00
if a4=75,001 but <125001 fee=1.75
if a4=125001 but<250001 fee=1.50
if a4=250001 but<1000001 fee=1.25
if a4=1000001 fee=1.00



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
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
need assistance setting up formula in excel for number x 15%? sari Excel Discussion (Misc queries) 1 August 4th 05 01:42 AM
Calculation Setting in Excel Stuart Bisset Excel Discussion (Misc queries) 0 June 17th 05 09:54 AM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
How can I use HYPERLINK in a conditional statement between sheets Mikey Excel Worksheet Functions 1 May 3rd 05 08:07 PM


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