If statement for numbers within specific ranges

Woofy_McWoof_Woof

Board Regular
Joined
Oct 7, 2016
Messages
60
Office Version
  1. 365
Platform
  1. Windows
Hi I am trying to calculate the results for specific ranges of data, for instance in the example below I would like to split the 15 result into the appropriate bands so that 5 is shared equally amongst the three bands however for 8.5 it will only appear in the first two bands and split accordingly.

I tried to use the formula below but all it does is put the total number into the cell rather than the number according to the range. Any help would be appreciated and if its possible to capture the result in one formula (just have to change the band range) then i could copy that formula into all the cells rather than having three separate formulas.

Cheers

15
<=5
=IF(AND(A2>=5,A2<=10),A2,0)
>5<=10=IF(AND(A2>=5,A2<=10),A2,0)
>10=IF(A2>10,A2,0)

Result<=5>5<=10>10
15555
8.553.50
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Maybe:

Book1
ABCDE
1Result5109999
215555
38.553.50
Sheet1
Cell Formulas
RangeFormula
C2:E3C2=MIN($A2-SUM($B2:B2),C$1-B$1)


I changed the headings, and the empty B column is required. But we can tweak it if you want.
 
Upvote 0

Forum statistics

Threads
1,214,520
Messages
6,120,017
Members
448,936
Latest member
almerpogi

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