days between dates

janus67

Board Regular
Joined
Nov 26, 2006
Messages
143
Office Version
  1. 2016
Platform
  1. Windows
Hello, I'd like to calculate the number of days between dates -- Excel 2007
I've formatted the columns to Dates-- Aust so they read 23-12-2006 etc
when I put =C3-B3 for the below , I get a #value instead of 11 days

ColB ColC ColD
23-12-1992 03/01/1993 #VALUE!

can someone advise where I'm going wrong please

thanks Keith
 

Some videos you may like

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Yogi Anand

MrExcel MVP
Joined
Mar 12, 2002
Messages
11,454
Hello, I'd like to calculate the number of days between dates -- Excel 2007
I've formatted the columns to Dates-- Aust so they read 23-12-2006 etc
when I put =C3-B3 for the below , I get a #value instead of 11 days

ColB ColC ColD
23-12-1992 03/01/1993 #VALUE!

can someone advise where I'm going wrong please

thanks Keith

Hi Keith:

Make sure there are valid DATE entries in cells B3 and C3 ...

<html><head><title>Excel Jeanie HTML</title></head><body>
Excel Workbook
BCD
323-Dec-19923-Jan-199311
Sheet3


</body></html>
 

janus67

Board Regular
Joined
Nov 26, 2006
Messages
143
Office Version
  1. 2016
Platform
  1. Windows
thanks Yogi
I reformatted the dates as suggested -- in English Aust but not all cells changed !
about every 2nd/3rd cell still shows as follows

23-12-1992 03-January-1993 #VALUE!


how can I sweettalk Excel into changing the dates

regards Keith
 

Yogi Anand

MrExcel MVP
Joined
Mar 12, 2002
Messages
11,454
Hi Keith:

You may want to look into using DATA>Text-to-columns

after selecting the range of interest, invoke Data>Text-to-columns
then in Step 3 of 3 choose Date in Column_Data_Format box
and choose D/M/Y in the dropDown to the right

I hope this helps.
 

janus67

Board Regular
Joined
Nov 26, 2006
Messages
143
Office Version
  1. 2016
Platform
  1. Windows
hello Yogi, that did the trick
thanks for your help
 

Watch MrExcel Video

Forum statistics

Threads
1,122,604
Messages
5,597,128
Members
414,126
Latest member
jellevansoelen

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