#1   Report Post  
meekone
 
Posts: n/a
Default If Function

If C2<1 then D2=c2*.032 If C2<10 then D2=C2*.02 If C2<=1000 then D2=C2*.01
How would I do this?
  #2   Report Post  
Michael
 
Posts: n/a
Default

Hi
In D2 put:
=IF(C2<=1000,C2*.01,IF(C2<10,C2*.02,IF(C2<1,C2*.03 2,"")))

HTH
Michael

"meekone" wrote:

If C2<1 then D2=c2*.032 If C2<10 then D2=C2*.02 If C2<=1000 then D2=C2*.01
How would I do this?

  #3   Report Post  
Jason Morin
 
Posts: n/a
Default

An alternative to multiple IF functions:

=CHOOSE(SUM(C2<1,C2<10,C2<=1000),0.01,0.02,0.032)

HTH
Jason
Atlanta, GA

-----Original Message-----
If C2<1 then D2=c2*.032 If C2<10 then D2=C2*.02 If

C2<=1000 then D2=C2*.01
How would I do this?
.

  #4   Report Post  
Jason Morin
 
Posts: n/a
Default

Sorry, the formula should be multiplied by C2.

=C2*CHOOSE(SUM(C2<1,C2<10,C2<=1000),0.01,0.02,0.03 2)

Jason

-----Original Message-----
An alternative to multiple IF functions:

=CHOOSE(SUM(C2<1,C2<10,C2<=1000),0.01,0.02,0.03 2)

HTH
Jason
Atlanta, GA

-----Original Message-----
If C2<1 then D2=c2*.032 If C2<10 then D2=C2*.02 If

C2<=1000 then D2=C2*.01
How would I do this?
.

.

  #5   Report Post  
Harlan Grove
 
Posts: n/a
Default

Jason Morin wrote...
An alternative to multiple IF functions:

=CHOOSE(SUM(C2<1,C2<10,C2<=1000),0.01,0.02,0.03 2)

....

You're not handling C21000, in which case your formula would return
#VALUE!. Lookup formulas like

=LOOKUP(C2,{-1E300,1,10,999.999999999999},{0.01,0.02,0.32,
"Unsupported: 1000"})

would scale much more easily as the number of transition points
increases.

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
Trim function doesn't clean out ASCII Code 160 (Space) Ronald Dodge Excel Worksheet Functions 6 January 27th 05 03:48 AM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
I cant use englisch function names in a swedich version of excel PE Excel Discussion (Misc queries) 2 December 7th 04 01:00 AM
Find a Function to use accross different worksheets R. Hale Excel Worksheet Functions 3 November 25th 04 07:07 AM
change function variable prompts?? thinkingfield Excel Worksheet Functions 1 November 8th 04 04:01 PM


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