IF Date range formula

  • Thread starter Thread starter Phatbob
  • Start date Start date
P

Phatbob

I need a formula that works like this.

Cell A1 has a name
Cell B1 has a date
Cell C1 has a number

If Cell A1 has a specific name and Cell B1 is do not exceed date, Cell
D1 is populated with C1.

For B1, it would be a date prior to 7/22/06, where 7/21/06 or 7/22/06
would populate D1, but 7/23/06 would remain blank in D1.

Please help.
 
Phatbob said:
I need a formula that works like this.

Cell A1 has a name
Cell B1 has a date
Cell C1 has a number

If Cell A1 has a specific name and Cell B1 is do not exceed date, Cell
D1 is populated with C1.
=(A1="Name")*(B1<=Now())*C1

For B1, it would be a date prior to 7/22/06, where 7/21/06 or 7/22/06
would populate D1, but 7/23/06 would remain blank in D1.

I don't understand what you mean.

Bruno
 
If my cut off date was 7/22, any date before or on that date, i.e. 7/22,
7/21, 5/30, etc., would populate Cell D1 with the number that is in Cell
C1.

Does that help?
 
In addition to the last clarification, I need to be able to onl
populate Cell D1 if both the name and date range constraints are met
 
Ok I am sure there is a better solution than this - but this is the sor
of thing I would come up with in my long way round of doing things!

In A1,B1 and C1 I would have the data as you have detailed.
I would also add E1 to be the latest possible date - in your case e
would be 07/23/06

in D1 I would then use the formula
=IF(AND(A1="Name",B1<$E$1),C1,"")
where you can replace NAME with whichever word/name you want it to be.

You don't need to copy the value in e1 down the range as the formul
will always look back at this same date.

Sure someone on here will be able to think of a more concise version
but that's the solution I wouls use personally. Might learn somethin
new myself too!! :)

Hope that was of some help though!


I need a formula that works like this.

Cell A1 has a name
Cell B1 has a date
Cell C1 has a number

If Cell A1 has a specific name and Cell B1 is do not exceed date, Cel
D1 is populated with C1.

For B1, it would be a date prior to 7/22/06, where 7/21/06 or 7/22/0
would populate D1, but 7/23/06 would remain blank in D1.

Please hel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top