#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default A Query

Hi,

I have been a user who have always done simple tasks like creating
table, formatting etc in Excel. But time requires that I need to get
used to using formula and other tools of excel therefore my query
might be so simple for the experienced users but I don't know how it
can be done. So excuse me for my ignorance:

I have a table that contains dates in one cell and time stamp in the
subequent cell and the same formate spanning over three months. I need
to exclude those cell having time stamp and count (month-wise) those
cells having date in them.

For example:

COLUMN A
31-Oct-07
10:49:27 PM
31-Oct-07
12:18:28 PM
30-Oct-07
12:32:27 PM

Can anyone help me?

Thanks,

Pankaj

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default A Query

If those times are really just times (and not date-times), then you
could use this formula:

=COUNTIF(A:A,"1")

assuming the data is in column A - put the formula in a different
column. This will give you an overall count of the dates - not sure
what you mean by "count (month-wise)".

Hope this helps.

Pete

On Nov 1, 9:12 am, Pankaj Trivedi
wrote:
Hi,

I have been a user who have always done simple tasks like creating
table, formatting etc in Excel. But time requires that I need to get
used to using formula and other tools of excel therefore my query
might be so simple for the experienced users but I don't know how it
can be done. So excuse me for my ignorance:

I have a table that contains dates in one cell and time stamp in the
subequent cell and the same formate spanning over three months. I need
to exclude those cell having time stamp and count (month-wise) those
cells having date in them.

For example:

COLUMN A
31-Oct-07
10:49:27 PM
31-Oct-07
12:18:28 PM
30-Oct-07
12:32:27 PM

Can anyone help me?

Thanks,

Pankaj



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default A Query

On Nov 1, 4:52 pm, Pete_UK wrote:
If those times are really just times (and not date-times), then you
could use this formula:

=COUNTIF(A:A,"1")

assuming the data is in column A - put the formula in a different
column. This will give you an overall count of the dates - not sure
what you mean by "count (month-wise)".

Hope this helps.

Pete

On Nov 1, 9:12 am, Pankaj Trivedi
wrote:

Hi,


I have been a user who have always done simple tasks like creating
table, formatting etc in Excel. But time requires that I need to get
used to using formula and other tools of excel therefore my query
might be so simple for the experienced users but I don't know how it
can be done. So excuse me for my ignorance:


I have a table that contains dates in one cell and time stamp in the
subequent cell and the same formate spanning over three months. I need
to exclude those cell having time stamp and count (month-wise) those
cells having date in them.


For example:


COLUMN A
31-Oct-07
10:49:27 PM
31-Oct-07
12:18:28 PM
30-Oct-07
12:32:27 PM


Can anyone help me?


Thanks,


Pankaj


Hi Pete,

Thanks a lot. It is working.

Perhaps I failed to express myself properly when I said (month-wise).
In fact, my data was spanning over three month's time so I wanted to
have total at the end of every month. But anyways, I believe that may
have made the formula more complex and I know as of today that is not
my cup of tea. :=)


Pankaj

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default A Query

Glad to hear it is working - thanks for feeding back.

Pete

On Nov 1, 2:37 pm, Pankaj Trivedi
wrote:

Hi Pete,

Thanks a lot. It is working.

Perhaps I failed to express myself properly when I said (month-wise).
In fact, my data was spanning over three month's time so I wanted to
have total at the end of every month. But anyways, I believe that may
have made the formula more complex and I know as of today that is not
my cup of tea. :=)

Pankaj- Hide quoted text -

- Show quoted text -



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default A Query

Hi

One way
=SUMPRODUCT(--(TEXT($A$1:$A$100,"yymm")="0710"))

Or your could put the year and month in another cell, e.g. B1 and use
=SUMPRODUCT(--(TEXT($A$1:$A$100,"yymm")=$B$1))

--
Regards
Roger Govier



"Pankaj Trivedi" wrote in message
ups.com...
Hi,

I have been a user who have always done simple tasks like creating
table, formatting etc in Excel. But time requires that I need to get
used to using formula and other tools of excel therefore my query
might be so simple for the experienced users but I don't know how it
can be done. So excuse me for my ignorance:

I have a table that contains dates in one cell and time stamp in the
subequent cell and the same formate spanning over three months. I need
to exclude those cell having time stamp and count (month-wise) those
cells having date in them.

For example:

COLUMN A
31-Oct-07
10:49:27 PM
31-Oct-07
12:18:28 PM
30-Oct-07
12:32:27 PM

Can anyone help me?

Thanks,

Pankaj





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default A Query

On Nov 1, 4:53 pm, "Roger Govier" <rogerattechnology4NOSPAMu.co.uk
wrote:
Hi

One way
=SUMPRODUCT(--(TEXT($A$1:$A$100,"yymm")="0710"))

Or your could put the year and month in another cell, e.g. B1 and use
=SUMPRODUCT(--(TEXT($A$1:$A$100,"yymm")=$B$1))

--
Regards
Roger Govier

"Pankaj Trivedi" wrote in message

ups.com...

Hi,


I have been a user who have always done simple tasks like creating
table, formatting etc in Excel. But time requires that I need to get
used to using formula and other tools of excel therefore my query
might be so simple for the experienced users but I don't know how it
can be done. So excuse me for my ignorance:


I have a table that contains dates in one cell and time stamp in the
subequent cell and the same formate spanning over three months. I need
to exclude those cell having time stamp and count (month-wise) those
cells having date in them.


For example:


COLUMN A
31-Oct-07
10:49:27 PM
31-Oct-07
12:18:28 PM
30-Oct-07
12:32:27 PM


Can anyone help me?


Thanks,


Pankaj


Hi Roger,

Perhaps I am novice to understand the concept of array. I tried but
without success I am sure I must have created some sort of mess.

Anyways, I am thankful for your time and assistance.

Regards,

Pankaj

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default A Query

Hi

If you copied and used my formula, you would need to adjust the row number
to deal with the extent to which your data fills columns A
I just used a range of 100 rows as an example

You cannot give whole columns as arguments to the Sumproduct formulae.
You could use
=SUMPRODUCT(--(TEXT($A$1:$A$65535,"yymm")="0710"))
if your data was really going all the way down the sheet, but it is better
to restrict the formula to a smaller range that will encompass all of your
existing / likely future data range.

Testing for "0710" is testing for October 2007.
You mentioned in a reply to Pete, that you were looking for the results for
3 separate months. If you entered in
B1 '0708
B2 '0709
B3 '0710
Note the single quote in front of the entry to force the values to be text.
Then enter your formula in C1 as
=SUMPRODUCT(--(TEXT($A$1:$A$65535,"yymm")=$B1))
and copy down to C2:C3
you will have the results for each of the months.
--
Regards
Roger Govier



"Pankaj Trivedi" wrote in message
ups.com...
On Nov 1, 4:53 pm, "Roger Govier" <rogerattechnology4NOSPAMu.co.uk
wrote:
Hi

One way
=SUMPRODUCT(--(TEXT($A$1:$A$100,"yymm")="0710"))

Or your could put the year and month in another cell, e.g. B1 and use
=SUMPRODUCT(--(TEXT($A$1:$A$100,"yymm")=$B$1))

--
Regards
Roger Govier

"Pankaj Trivedi" wrote in message

ups.com...

Hi,


I have been a user who have always done simple tasks like creating
table, formatting etc in Excel. But time requires that I need to get
used to using formula and other tools of excel therefore my query
might be so simple for the experienced users but I don't know how it
can be done. So excuse me for my ignorance:


I have a table that contains dates in one cell and time stamp in the
subequent cell and the same formate spanning over three months. I need
to exclude those cell having time stamp and count (month-wise) those
cells having date in them.


For example:


COLUMN A
31-Oct-07
10:49:27 PM
31-Oct-07
12:18:28 PM
30-Oct-07
12:32:27 PM


Can anyone help me?


Thanks,


Pankaj


Hi Roger,

Perhaps I am novice to understand the concept of array. I tried but
without success I am sure I must have created some sort of mess.

Anyways, I am thankful for your time and assistance.

Regards,

Pankaj



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
Importing Data via Web Query - Can values be passed to query? [email protected] Excel Discussion (Misc queries) 5 May 9th 06 06:21 PM
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? jocke Excel Discussion (Misc queries) 1 November 29th 05 01:44 PM
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? jocke Excel Discussion (Misc queries) 0 November 28th 05 06:37 PM
Microsoft Query rejects "nz" function in Access Query Vaughan Excel Discussion (Misc queries) 0 May 4th 05 05:20 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM


All times are GMT +1. The time now is 08:16 PM.

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

About Us

"It's about Microsoft Excel"