LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Between Two Numbers...

On Thu, 7 Feb 2008 12:47:04 -0800, GoodTrouble
wrote:

I need to have Excel calculate percentages of a cell based on where it falls
between numbers...for example:


Percentage of this number: (B2) $3,500.00

0 - 2500 = 25% $0.00 (B4)
2501 - 3500 = 30% $0.00 (B5)
3501 + = 35% $0.00 (B6)

So if B2 were $4000.00 the calculations should equal out to as follows:
2500 * 25% = 625
1000 * 30% = 300
500 x 35% = 175

Can this be done? I tried SUMIF, IF(AND), and stuff like that but nothing
seems to come out right.

Please help!


Set up a table and NAME it tbl

0 0 25%
2500 625 30%
3500 925 35%

If tbl refers to: H1:J3 then

I2: =I1+(H2-H1)*J1

Then, use this:

=(B2-VLOOKUP(B2,tbl,1))*VLOOKUP(B2,tbl,3)+VLOOKUP(B2,tb l,2)



--ron
 
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
VLOOKUP should compare numbers stored as text to plain numbers. VLOOKUP - Numbers stored as text Excel Worksheet Functions 0 March 31st 06 05:53 PM
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Excel Worksheet Functions 3 January 19th 06 09:52 AM
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Excel Worksheet Functions 1 January 9th 06 01:23 PM
convert negative numbers to positive numbers and vice versa bill gras Excel Worksheet Functions 4 December 7th 05 01:39 AM
Count comma separated numbers, numbers in a range with dash, not t Mahendra Excel Discussion (Misc queries) 0 August 8th 05 05:56 PM


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