Find amount of range that's within specific sub ranges

d_tech

New Member
Joined
Jul 19, 2017
Messages
12
Office Version
  1. 2016
Platform
  1. Windows
Let's say I have random numbers from 0.00 to 2.50 in columns H and I indicating a range.

For each row, column J is supposed to tell me how much of that is within certain specific ranges of between 0.00 to 0.29, 0.79 to 1.29, and 1.79 to 2.29

For example H1 is 0.25 and I1 is 2.00 then J1 is supposed to show 0.75

How could that be done?
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
how is 2.00 *.25 = .75. Can you explain the arithmetic please?
I don't understand your range gaps you skip .30 to .78, 1.30 to 1.78.
can you give more examples?
 
Upvote 0
how is 2.00 *.25 = .75. Can you explain the arithmetic please?
I don't understand your range gaps you skip .30 to .78, 1.30 to 1.78.
can you give more examples?
Okay for example there'd be .30 in column H and .80 in column I then column J should show 0.01

Column H to column I is a range but column J is supposed to show how much of that would go into specific sub ranges
 
Upvote 0
still don't understand, sorry. can you post an xl2bb mini worksheet?
with just hand entered expected outcomes.

is there multiplication? or is it comparison? .8 * .3 is not .01... it is .24.
 
Upvote 0
I understand what you want, but I'm not capable of producing an elegant solution. Hopefully, someone cleverer than me (most people here) will provide a better solution...
Book1
GHIJ
10.252.000.75
2
3range 10.000.29
4range 20.791.29
5range 31.792.29
Sheet1
Cell Formulas
RangeFormula
J1J1=(MIN($I$1,I3))-MAX($H$1,H3)+(MIN($I$1,I4))-MAX($H$1,H4)+(MIN($I$1,I5))-MAX($H$1,H5)
 
Upvote 0
I understand what you want, but I'm not capable of producing an elegant solution. Hopefully, someone cleverer than me (most people here) will provide a better solution...
Book1
GHIJ
10.252.000.75
2
3range 10.000.29
4range 20.791.29
5range 31.792.29
Sheet1
Cell Formulas
RangeFormula
J1J1=(MIN($I$1,I3))-MAX($H$1,H3)+(MIN($I$1,I4))-MAX($H$1,H4)+(MIN($I$1,I5))-MAX($H$1,H5)
Thanks, this helped me figure it out. In itself it doesn't quite work because it needs to disregard the negatives; but I got something for now that works. I'll attach the mini-sheet

Book1.xlsx
HIJKLMNOP
10.252.000.040.500.210.750.000.29
20.300.80-0.010.01-0.990.010.791.29
30.752.00-0.460.500.210.711.792.29
Sheet1
Cell Formulas
RangeFormula
J1:J3J1=(MIN(I1,$P$1))-MAX(H1,$O$1)
K1:K3K1=(MIN(I1,$P$2))-MAX(H1,$O$2)
L1:L3L1=(MIN(I1,$P$3))-MAX(H1,$O$3)
M1:M3M1=SUMIF(J1:L1,">0",J1:L1)
 
Upvote 0
Solution

Forum statistics

Threads
1,223,886
Messages
6,175,195
Members
452,616
Latest member
intern444

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