A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

how do I specify a date range = date(2010,4,1 thru 30)



 
 
Thread Tools Display Modes
  #1  
Old March 8th, 2010, 09:28 PM posted to microsoft.public.excel.newusers
carper1975
external usenet poster
 
Posts: 2
Default how do I specify a date range = date(2010,4,1 thru 30)

I am trying to use a header in a formula. In A1 I have the month and year
(April 2010). I want to bring in a calculation result from a second page
(Daily Log) So I want to know how many guest in the month of April visited.
But it has to look up April from the year list.

I guess this is what I am trying to accomplish Lookup (A1) April (1-30) 2010
from April Stats sheet on Daily log sheet (A column) add guests logged in (D
Column) and result to April Stats B5

I record numbers daily and want to have the totals from one page brought to
another page, but need the data to be found for the month
  #2  
Old March 8th, 2010, 11:12 PM posted to microsoft.public.excel.newusers
Max
external usenet poster
 
Posts: 8,574
Default how do I specify a date range = date(2010,4,1 thru 30)

Assuming the source data as described is in the sheet named: Log
real dates in col A, real numbers in col D

In the stats sheet,
just enter any real date for "Apr 2010" in A1, eg: 1-Apr-2010
then in B5, you could use this:
=SUMPRODUCT(--TEXT(Log!A2:A20,"mmmyy")=TEXT(A1,"mmmyy"),Log!D2 20)
to return the sum of numbers in Log's col D with Apr 2010 dates in Log's col
A. Adapt the ranges to suit. I favour this route when it comes to computing
figs for a certain month/yr as you don't have to specify the actual start to
end dates (it can be "difficult" recalling the last day of month: 30?, 31?
ugh). Success? hit the YES below.
--
Max
Singapore
---
"carper1975" wrote:
I am trying to use a header in a formula. In A1 I have the month and year
(April 2010). I want to bring in a calculation result from a second page
(Daily Log) So I want to know how many guest in the month of April visited.
But it has to look up April from the year list.

I guess this is what I am trying to accomplish Lookup (A1) April (1-30) 2010
from April Stats sheet on Daily log sheet (A column) add guests logged in (D
Column) and result to April Stats B5

I record numbers daily and want to have the totals from one page brought to
another page, but need the data to be found for the month

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:09 AM.


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