Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / September 2005

Tip: Looking for answers? Try searching our database.

I need assistance setting up a "IF" statement

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mmr - 19 Sep 2005 14:35 GMT
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
Roger Govier - 19 Sep 2005 14:48 GMT
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

> Can you create an if statement for me?  
>  
[quoted text clipped - 3 lines]
> if a4=>250001 but<1000001 fee=1.25
> if a4=1000001 fee=1.00
Bob Phillips - 19 Sep 2005 14:57 GMT
=2-(0.25*(MATCH(A4,{0,75002,125002,250002,1000001},1)-1))

Signature

HTH

Bob Phillips

> Can you create an if statement for me?
>
[quoted text clipped - 3 lines]
> if a4=>250001 but<1000001 fee=1.25
> if a4=1000001 fee=1.00
KL - 19 Sep 2005 15:05 GMT
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,125000,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

> Can you create an if statement for me?
>
[quoted text clipped - 3 lines]
> if a4=>250001 but<1000001 fee=1.25
> if a4=1000001 fee=1.00
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.