Help with formula if value is greater than X AND less than Y

Sean15

Well-known Member
Joined
Jun 25, 2005
Messages
719
Office Version
  1. 2010
Platform
  1. Windows
Hi:

I have date in C1 - 9/30/18.

Range - A2:A100 has dates

Range - B2:B100 has numbers

I want to return value in B2 if date in A2 is greater than 91 days from 9/30/18 AND less than 180 days from 9/30/18.

Could you help please?

Thank you very much.

Sean
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Maybe...

Array fiormula
=INDEX(B2:B100,MATCH(1,(A2:A100>DATE(2018,9,30)+91)*(DATE(2018,9,30)+180>A2:A100),0))
Ctrl+Shift+Enter

M.
 
Upvote 0
Maybe...

=IF(AND(A2>C1+91,A2<C1+180),B2,"")

copied down (interpreting the question differently to Marcelo)
 
Last edited:
Upvote 0
How about
=IF(AND(A2 >C$1+91,A2< C$1+180),B2,"")

I'm obviously way too slow typing :(
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

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