Need to know what formula to use

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm creating a spreadsheet in which I want to enter data and have the date
entered be used to separate the information so I can total it. For instance,
all entries made in January are totaled, and February, etc. So that I can
produce a monthly report and then a yearly total. I have been trying to
figure this out for days!
 
Yes, the date is in the cell, like 1/1/07, but when I look at formulas, it
has a number that the program assigned to the cell
 
I'm creating a spreadsheet in which I want to enter data and have
Yes, the date is in the cell, like 1/1/07, but when I look at
formulas, it has a number that the program assigned to the cell

Probably what's happening is that the "number" is the numerical
representation of the formatted date.

If the dates are in column A and the numbers to be summed are in column C,
one approach is to put =MONTH(A1) in B1 and copy down to the end of the
data, then put =SUMIF(B:B,ROW(),C:C) in H1 and copy down to H12 (for 12
months).

Modify to suit. Hope this works.
 
It didn't work. Perhaps it would help if I put some of the columns for you
to look at.
Column A states the marital status, Column B has date of visit, Column C is
empty (to put in the formula I need) Column D has a zero or a one depending
on whether the criteria in Column A is met. For instance, Column D is a 1
only if Column A is "Single", Column E is a 1 only if Column A is "Married",
Column F is a 1 only if Column A is "Divorced", etc. If the criteria for
Column A is not met, then a zero is entered in the other columns. I need a
formula that looks at Column B, decides what month each visit was in, and
then adds the total number of 1's in each column that falls in that month.
In the end I need all 12 months listed with the total number of Single,
Married or Divorced in each month.

I sure hope this helps and really appreciate your trying to help me.
 
Hi Cindy

You only need columns A and B.
Mark your range of data in columns A and B, Data>Pivot Table>Finish
On the new sheet that appears, with the PT skeleton
drag Date from the Field List to the Row area
drag Status from the Field List to the Column Area
drag Status again from the Field List to the Data area
Right click on Date>Group and Outline>Group>choose Month and Year

There, you have your report.
 
Thank you! Thank you! Thank you! You have saved my sanity and my boss is
grateful I didn't quit over this!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Excel Vba to change displayed year automatically. 14
Vlookup or Hlookup does not work 1
Countif 2
Duplication of Counts 2
Average Calculation 4
Formula for selecting a Leap Year. 7
Need formula help 8
Excel Forecasting Dates Out to the Day 3

Back
Top