Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I am trying to get : how many days between two columns: A contains dates, column B contains also dates to get results on column C for example : A B C 04.05.2008 06.07.2008 ? (how many days) many thanks, M.Barada UAE |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Assuming real dates in A1 & B1,
where B1's date (enddate) is later than A1's startdate then in C1: =IF(COUNT(A1:B1)=2,B1-A1,"") -- Max Singapore http://savefile.com/projects/236895 Downloads:16,000 Files:354 Subscribers:53 xdemechanik --- " wrote: I am trying to get : how many days between two columns: A contains dates, column B contains also dates to get results on column C for example : A B C 04.05.2008 06.07.2008 ? (how many days) many thanks, M.Barada UAE |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=DATE(RIGHT(C21,4),LEFT(C21,2),MID(C21,4,2))-DATE(RIGHT(B21,4),LEFT(B21,2),MID(B21,4,2))
Where C21 is your end date B21 is your start date and I assumed your date format was month.day.year, which may not be a good assumption. -- Tips for Excel, Word, PowerPoint and Other Applications http://www.kan.org/tips " wrote: Hi, I am trying to get : how many days between two columns: A contains dates, column B contains also dates to get results on column C for example : A B C 04.05.2008 06.07.2008 ? (how many days) many thanks, M.Barada UAE |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Excuse me, but why can't you simply use the formula: =SUM(B1-a1)
as long as columns A & B are formatted as dates, and C as a number? It always works for me. k "M Kan" wrote: =DATE(RIGHT(C21,4),LEFT(C21,2),MID(C21,4,2))-DATE(RIGHT(B21,4),LEFT(B21,2),MID(B21,4,2)) Where C21 is your end date B21 is your start date and I assumed your date format was month.day.year, which may not be a good assumption. -- Tips for Excel, Word, PowerPoint and Other Applications http://www.kan.org/tips " wrote: Hi, I am trying to get : how many days between two columns: A contains dates, column B contains also dates to get results on column C for example : A B C 04.05.2008 06.07.2008 ? (how many days) many thanks, M.Barada UAE |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Remember to format C1 as general or number
-- Max Singapore http://savefile.com/projects/236895 Downloads:16,000 Files:354 Subscribers:53 xdemechanik --- |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I ended up with a #VALUE error (2003)
-- Tips for Excel, Word, PowerPoint and Other Applications http://www.kan.org/tips "KMC" wrote: Excuse me, but why can't you simply use the formula: =SUM(B1-a1) as long as columns A & B are formatted as dates, and C as a number? It always works for me. k "M Kan" wrote: =DATE(RIGHT(C21,4),LEFT(C21,2),MID(C21,4,2))-DATE(RIGHT(B21,4),LEFT(B21,2),MID(B21,4,2)) Where C21 is your end date B21 is your start date and I assumed your date format was month.day.year, which may not be a good assumption. -- Tips for Excel, Word, PowerPoint and Other Applications http://www.kan.org/tips " wrote: Hi, I am trying to get : how many days between two columns: A contains dates, column B contains also dates to get results on column C for example : A B C 04.05.2008 06.07.2008 ? (how many days) many thanks, M.Barada UAE |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF formula-simple question; simple operator | Excel Discussion (Misc queries) | |||
Simple problem, simple formula, no FUNCTION ! | Excel Worksheet Functions | |||
Need a simple formula | Excel Worksheet Functions | |||
HELP WITH A SIMPLE FORMULA | Excel Discussion (Misc queries) | |||
simple formula | Excel Worksheet Functions |