Blank Cell if no date

The Jackal

New Member
Joined
May 30, 2018
Messages
13
Hi,

I am currently using =MONTH([@[Date Sold]]) in order to extract the number ascosiated with the Month. However, this displays "1" if the cell is blank. I would like it to be blank if there is no date.

I have tried adding =IF(ISBLANK but cant get this to work. Please help.

Carl
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
try
Excel Formula:
=IF([@[Date Sold]]="","",MONTH([@[Date Sold]])

mr excel questions 17.xlsm
ABCDE
1DateSoldAmountMonth
22023-01-18241
32023-03-19213
42023-02-23222
52023-02-16392
634 
72023-03-18363
82023-02-21312
92023-01-25361
102023-01-22451
112023-01-10341
12
The Jackal
Cell Formulas
RangeFormula
D2:D11D2=IF([@DateSold]="","",MONTH([@DateSold]))
 
Last edited:
Upvote 1
Solution
Thats working fine and i have tried to do the same for an adjacenbt cell with =WEEKNUM([@[Date Sold]],2) but yet again my lack of knowledge fails me.

=IF([@DateSold]="","",WEEKNUM([@DateSold]],2)) wont do the same????
 
Upvote 0
Thats working fine and i have tried to do the same for an adjacenbt cell with =WEEKNUM([@[Date Sold]],2) but yet again my lack of knowledge fails me.

=IF([@DateSold]="","",WEEKNUM([@DateSold]],2)) wont do the same????
you're missing a bracket, formula should be:

Excel Formula:
=IF([@DateSold]="","",WEEKNUM([@[DateSold]],2))

The formula dialog is helpful in debugging!

1679571317979.png
 
Upvote 1

Forum statistics

Threads
1,214,861
Messages
6,121,969
Members
449,059
Latest member
oculus

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