#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 65
Default Auto counting

I got dates under column A and days passed by since date in column A in
Column B. How do I ask it to auto calculate the days passed with reference to
the date in real time.

Example:

A B
5 march 2010 11days
10 march 2010 6days

Given today's date is 17 march 2010
--

Thanks!

help me
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Auto counting

Try

=TODAY()-A1-1 & " days"

--
Jacob


"ernie" wrote:

I got dates under column A and days passed by since date in column A in
Column B. How do I ask it to auto calculate the days passed with reference to
the date in real time.

Example:

A B
5 march 2010 11days
10 march 2010 6days

Given today's date is 17 march 2010
--

Thanks!

help me

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 65
Default Auto counting

thanks very useful much indeed. =)
--
help me


"Jacob Skaria" wrote:

Try

=TODAY()-A1-1 & " days"

--
Jacob


"ernie" wrote:

I got dates under column A and days passed by since date in column A in
Column B. How do I ask it to auto calculate the days passed with reference to
the date in real time.

Example:

A B
5 march 2010 11days
10 march 2010 6days

Given today's date is 17 march 2010
--

Thanks!

help me

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 65
Default Auto counting

what if i want to exclude the weekends till today. possible ?

Thanks
--
help me


"Jacob Skaria" wrote:

Try

=TODAY()-A1-1 & " days"

--
Jacob


"ernie" wrote:

I got dates under column A and days passed by since date in column A in
Column B. How do I ask it to auto calculate the days passed with reference to
the date in real time.

Example:

A B
5 march 2010 11days
10 march 2010 6days

Given today's date is 17 march 2010
--

Thanks!

help me

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Auto counting

Try

=SUMPRODUCT(INT((TODAY()-A1+WEEKDAY(A1-{2,3,4,5,6}))/7))

OR (From Analysis Tool Pak Add-In)
=NETWORKDAYS(A1,TODAY())

--
Jacob


"ernie" wrote:

what if i want to exclude the weekends till today. possible ?

Thanks
--
help me


"Jacob Skaria" wrote:

Try

=TODAY()-A1-1 & " days"

--
Jacob


"ernie" wrote:

I got dates under column A and days passed by since date in column A in
Column B. How do I ask it to auto calculate the days passed with reference to
the date in real time.

Example:

A B
5 march 2010 11days
10 march 2010 6days

Given today's date is 17 march 2010
--

Thanks!

help me



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 65
Default Auto counting

okay! thanks. I got exactly what I want. But I'm really interested to know
how it works.. Can you explains to me ? Please. Thanks you.
--
help me


"Jacob Skaria" wrote:

Try

=SUMPRODUCT(INT((TODAY()-A1+WEEKDAY(A1-{2,3,4,5,6}))/7))

OR (From Analysis Tool Pak Add-In)
=NETWORKDAYS(A1,TODAY())

--
Jacob


"ernie" wrote:

what if i want to exclude the weekends till today. possible ?

Thanks
--
help me


"Jacob Skaria" wrote:

Try

=TODAY()-A1-1 & " days"

--
Jacob


"ernie" wrote:

I got dates under column A and days passed by since date in column A in
Column B. How do I ask it to auto calculate the days passed with reference to
the date in real time.

Example:

A B
5 march 2010 11days
10 march 2010 6days

Given today's date is 17 march 2010
--

Thanks!

help me

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Auto counting

The array gives the day numbers for the days Monday through Friday. For
example if you want to get a count of weekend days change that to {1,7}

You could re-write the formula as below...which will only consider the
weekdays which are specified in the array
=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&TODAY())))={2,3,4,5,6 }))

--
Jacob


"ernie" wrote:

okay! thanks. I got exactly what I want. But I'm really interested to know
how it works.. Can you explains to me ? Please. Thanks you.
--
help me


"Jacob Skaria" wrote:

Try

=SUMPRODUCT(INT((TODAY()-A1+WEEKDAY(A1-{2,3,4,5,6}))/7))

OR (From Analysis Tool Pak Add-In)
=NETWORKDAYS(A1,TODAY())

--
Jacob


"ernie" wrote:

what if i want to exclude the weekends till today. possible ?

Thanks
--
help me


"Jacob Skaria" wrote:

Try

=TODAY()-A1-1 & " days"

--
Jacob


"ernie" wrote:

I got dates under column A and days passed by since date in column A in
Column B. How do I ask it to auto calculate the days passed with reference to
the date in real time.

Example:

A B
5 march 2010 11days
10 march 2010 6days

Given today's date is 17 march 2010
--

Thanks!

help me

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
counting function but not double counting duplicates JRD Excel Worksheet Functions 2 November 7th 07 06:43 PM
Auto-populate, Auto-copy or Auto-fill? Jay S. Excel Worksheet Functions 4 August 10th 07 09:04 PM
Counting items in auto filter - how? country birder Excel Discussion (Misc queries) 4 March 28th 06 08:20 PM
Counting rows, then counting values. Michael via OfficeKB.com Excel Discussion (Misc queries) 7 August 4th 05 10:57 PM
Auto Filter Counting AM Excel Worksheet Functions 1 December 15th 04 04:53 PM


All times are GMT +1. The time now is 05:16 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"