Intervals from a Value (Image)

Ameryjackson

New Member
Joined
Oct 15, 2017
Messages
4
0dcXl
0dcXl
Hello,

I am struggling with the problem shown in the image below. Any help would be appreciated. Thanks in advance.

https://imgur.com/a/0dcXl
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Next time please don't ask us to recreate your data structure, but publish your file.

Given this structure


Set in H2 the formula
Code:
=IF(AND($F2>=INDEX($B$1:$B$10,MATCH(H$1,$D$1:$D$10;0)),$G2<=INDEX($C$1:$C$10,MATCH(H$1,$D$1:$D$10;0))),H$1,"")
Copy down and then copy to the next columns

Bye
 
Upvote 0
Next time please don't ask us to recreate your data structure, but publish your file.

Given this structure


Set in H2 the formula
Code:
=IF(AND($F2>=INDEX($B$1:$B$10,MATCH(H$1,$D$1:$D$10;0)),$G2<=INDEX($C$1:$C$10,MATCH(H$1,$D$1:$D$10;0))),H$1,"")
Copy down and then copy to the next columns

Bye

hello Anthony,

Thank you very much for your assistance. At the moment the code is resulting in an error. Did it work for you?

Cheers.
 
Upvote 0
The formula was correct and tested, BUT when I translated it from my language to English I forgot a couple of "semicolons" that had to be replaced with "comma":
=IF(AND($F2>=INDEX($B$1:$B$10,MATCH(H$1,$D$1:$D$10;0)),$G2<=INDEX($C$1:$C$10,MATCH(H$1,$D$1:$D$10;0))),H$1,"")

So please retry replacing the semicolons (;) with commas (,)

Bye
 
Upvote 0

Forum statistics

Threads
1,215,415
Messages
6,124,768
Members
449,187
Latest member
hermansoa

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