and if??

  • Thread starter Thread starter David
  • Start date Start date
D

David

I'm trying to check if two conditions are met, to use the
value in a non related cell.

For example, if a date is greater than the start date and
less than the end date, enter a value from A1, else enter
0.

Any thoughts?

Thanks, David.
 
David,

Try something like
=IF(AND(dateval>=startdate,dateval<=enddate),A1,0)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com (e-mail address removed)
 
In the non related cell enter

=IF(AND(date_cell>start_date_cell,date_cell<end_date_cell),A1,0)

an example could look like

=IF(AND(D1>B1,D1<C1),A1,0)
 

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

Similar Threads


Back
Top