when conditions are met, enter today's date

kmlynn1010

Board Regular
Joined
Feb 8, 2005
Messages
95
Hello!!

So, I'm trying to say that when a1, b1, and c1 are all 0, enter today's date in d1. This is what I have so far:

=IF(AND(CJ6=0,CN6=0,CR6=0),"now"," ")

I've tried
=IF(AND(CJ6=0,CN6=0,CR6=0),=now," ")
=IF(AND(CJ6=0,CN6=0,CR6=0))=now," "
=IF(AND(CJ6=0,CN6=0,CR6=0),date," ")
=IF(AND(CJ6=0,CN6=0,CR6=0),=date," ")

I'm so clueless! :oops:
 

Some videos you may like

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Von Pookie

MrExcel MVP
Joined
Feb 17, 2002
Messages
13,686
Date will only return the current date in a macro. For formulas, use the TODAY worksheet function to return the current system date. Try:

=IF(AND(CJ6=0,CN6=0,CR6=0),TODAY(),"")
 

Watch MrExcel Video

Forum statistics

Threads
1,122,970
Messages
5,599,105
Members
414,287
Latest member
Rbwester

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
Top