Search list

dtrom1

New Member
Joined
Jun 21, 2018
Messages
8
Hoping someone can help! In Columns A2:A1000 I have dates. The column is ordered by most recent date first (i.e. A1 being todays date). In Columns B2:B1000 I have a series of numbers labelled with column heading 'High' (in B2). In Columns C2:C1000 I have a series of numbers labelled with column heading 'Low' (in C2). The values are in no order at all.

In cell E1001 I have a value (HIGH look up) and in cell F1001 I have another value (LOW look up). Basically, in cell H1001, I want to run an IF statement. The statement will return a '1' if the highest value is reached in cells B2:B1000 before the lowest value (which is in cell H1001) is reached in columns C2:C1000. In summary the rule should search to see if the values in column B are higher than that in E1001 before the lowest value in F1001.

Example A
ABCDEFGHI
99810/01/201810092
99909/01/20188881
100008/01/20186355
100173201

<tbody>
</tbody>

Example B
ABCDEFGHI
99810/01/201810092
99909/01/20188881
100008/01/20186355
1001101700

<tbody>
</tbody>


So in the example A below, a '1' would be returned because a value higher than 73 is reached first - i.e. on 9/1/2018. In example B, a '0' is returned because Column C returns a lower value (55) first - i.e. it is lower than 70.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
I would probably do this with 2 MATCH functions

You know the High and the LOW, so something like...
=if(MATCH(high-value,B:B,0)>match(low-value,C:C,0),1,"")
 
Upvote 0
I would probably do this with 2 MATCH functions

You know the High and the LOW, so something like...
=if(MATCH(high-value,B:B,0)>match(low-value,C:C,0),1,"")


Thanks but that does not work - even after replacing with the correct cell numbers. I get a N/A
 
Upvote 0
Did you try just using 1 to see if it works? (your numbers may be text numbers)
 
Upvote 0
Could it be that the formula is looking for an exact match? So for example I may want to look for a value of 33 but as 44 is higher, if it reaches this value first then the formula is satisfied. Hope this helps.
 
Upvote 0

Forum statistics

Threads
1,215,193
Messages
6,123,566
Members
449,108
Latest member
rache47

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