Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Calculations based on cell value

I'm not sure if this is possible or not but what I would like to do is take a
value of a cell say E2 and then in another cell perform a calculation that
varies depending on the value in E2, for example:

If E2 is between 0.01 and 29.99 calculate E2*5.25%
or
If E2 is between 30.00 and 599.99 then calculate 1.57+(E2-29.99)*3.25%

In another cell I would like to have a set value inserted based on the value
of E2, for example:

If E2 is between 0.01 and 0.99 then insert 0.15
If E2 is between 1.00 and 4.99 then insert 0.20
If E2 is between 5.00 and 14.99 then insert 0.35 etc.

Is any of this possible?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 340
Default Calculations based on cell value

Try the two formulas:

=CHOOSE(MATCH(E2,{0.01,30,600}),E2*5.25%,1.57+(E2-29.99)*3.25%,NA())

=LOOKUP(E2,{0.01,1,5},{0.15,0.2,0.35})


Michael Wright wrote:

I'm not sure if this is possible or not but what I would like to do is take a
value of a cell say E2 and then in another cell perform a calculation that
varies depending on the value in E2, for example:

If E2 is between 0.01 and 29.99 calculate E2*5.25%
or
If E2 is between 30.00 and 599.99 then calculate 1.57+(E2-29.99)*3.25%

In another cell I would like to have a set value inserted based on the value
of E2, for example:

If E2 is between 0.01 and 0.99 then insert 0.15
If E2 is between 1.00 and 4.99 then insert 0.20
If E2 is between 5.00 and 14.99 then insert 0.35 etc.

Is any of this possible?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Calculations based on cell value

Thanks Lori,

They work perfectly.

"Lori" wrote:

Try the two formulas:

=CHOOSE(MATCH(E2,{0.01,30,600}),E2*5.25%,1.57+(E2-29.99)*3.25%,NA())

=LOOKUP(E2,{0.01,1,5},{0.15,0.2,0.35})


Michael Wright wrote:

I'm not sure if this is possible or not but what I would like to do is take a
value of a cell say E2 and then in another cell perform a calculation that
varies depending on the value in E2, for example:

If E2 is between 0.01 and 29.99 calculate E2*5.25%
or
If E2 is between 30.00 and 599.99 then calculate 1.57+(E2-29.99)*3.25%

In another cell I would like to have a set value inserted based on the value
of E2, for example:

If E2 is between 0.01 and 0.99 then insert 0.15
If E2 is between 1.00 and 4.99 then insert 0.20
If E2 is between 5.00 and 14.99 then insert 0.35 etc.

Is any of this possible?



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
shading a cell based on another cell with not value tony Excel Discussion (Misc queries) 1 August 25th 06 09:48 PM
Cell Limitations ? Formatting and Size when exporting to Tab based Text file? PaulH_1980 Excel Worksheet Functions 1 March 15th 06 11:51 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Linking a cell to another workbook cell based on a variable name Brian Excel Discussion (Misc queries) 6 June 1st 05 11:54 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 07:22 PM.

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"