Trying to calculate percentages on different bands.

dog biscuit

New Member
Joined
Feb 28, 2011
Messages
2
Hi, I'm slowly going crazy here! What I thought would be a simple task is turning out to be anything but....for me at least!

All I want to do is to be able to input a number and then split it into bands:
0 to 1100
1100 to 1500
1500 to 1700
1700 and over.
The figure can be any value and can be less than 1500 say.

If the figure was 1750 I want to get
1100
400
200
50
for example.

Any help gratefully appreciated. I am sorry if this has been covered before but I feeling rather stupid and have my husband breathing down my neck - I told him it would take me 2 minutes!

Many thanks.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Let's say you have your figure to split in B1.

In A3 down put the lower bound of each range, so in your example that would be 0 in A3, 1100, in A4, 1500 in A5 and 1700 in A6, leave A7 blank.

Then in B3 copied down to B6 use this formula

=IF((A4<>"")*(B$1>A4),A4-A3,MAX(0,B$1-A3))
 
Upvote 0
1750 in C1 for your test value.

0 in A3. 1100 in B3.
1100 in A4. 1500 in B4.
1500 in A5. 1700 in B5.
1700 in A6. 9999999 in B6.

Formula in C3 would be =MAX(0,MIN(B3,C$1)-A3). Copy down as necessary.
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,849
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top