Formula Help

ststern45

Well-known Member
Joined
Sep 17, 2005
Messages
961
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
I would like to know if a formula can be created for the following:

I have a value in cell A1 = 1052504

Since the value in cell A1 = 1052504 is greater than or equal to B2 (1048577) and less than or equal to C2 (2097152) the result would be 1 (cell D2).

Can a formula be created to calculate the above?

I have values in the following cells:

B1 = 0000001
C1 = 1048576
D1 = 0

B2 = 1048577
C2 = 2097152
D2 = 1

B3 = 2097153
C3 = 2704156
C3= 2

Thanks in advance.
 
Last edited:

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Is this what you need?

=($A$1< B1)+($A$1<=C1)<b1)+($a$1<=c1)< html=""></b1)+($a$1<=c1)<>
 
Last edited:
Upvote 0
Thanks but I was looking for an Index and Match formula.
For example,
Index B1:D3
Match B1:B3>=A1, C1:C3<=A1
Result = 1 (cell D2)

105204 is greater than or equal to B2 1048577
105204 is less than or equal to C2 2097152
So the result would be 1 (cell D2)

Thanks in adavance
 
Upvote 0
OK found what I was looking for:

=INDEX(B2:F4,MATCH(1,(B2:B4<=B23)*(D2:D4>=B23),0),5)

Ctrl+Shift+Enter

The cell ranges do not match the cells I posted.
 
Upvote 0

Forum statistics

Threads
1,215,248
Messages
6,123,867
Members
449,130
Latest member
lolasmith

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