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 can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
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,223,704
Messages
6,173,984
Members
452,540
Latest member
haasro02

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