+ Reply to Thread
Results 1 to 8 of 8

Finding, Counting, and Summing Multiple Variables in a Data Table

  1. #1
    Registered User
    Join Date
    09-08-2010
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    7

    Finding, Counting, and Summing Multiple Variables in a Data Table

    I have attached a spreadsheet to my thread. I have several questions I need help on. Here is a summary on the information I would like to find.

    I want to be able to find how many quotes I have received in a particular month and how many quotes I completed in a particular month. However, I need a breakdown of quotes that were completed during the month that were received during that month and other months.

    Essentially, I would like an output that provided the following information:

    INPUTS
    Month: July
    Year: 2010

    OUTPUTS
    Quotes:
    Total monthly received quotes:
    Quotes completed from May start date:
    Quotes completed from June start date:
    Quotes completed from July start date:

    Sales
    Total monthly sales:
    Sales completed from May start date:
    Sales completed from June start date:
    Saless completed from July start date:

    From that information I would like a breakdown of companies who bought from a quote and how many times they did.

    I would eventually like to add graphs to give a visual representation as well.

    Please view the following attachment for a better understanding. Any help is appreciated.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Finding, Counting, and Summing Multiple Variables in a Data Table

    INPUTS
    By INPUTs do you mean Column A date?

    By OUTPUTS Quotes, you want the sum of each month and the total to date from May, June, ... ?
    Quotes completed from July start date:

    Same thing with Sales?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    09-08-2010
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Finding, Counting, and Summing Multiple Variables in a Data Table

    Quote Originally Posted by ChemistB View Post
    INPUTS
    By INPUTs do you mean Column A date?

    By OUTPUTS Quotes, you want the sum of each month and the total to date from May, June, ... ?
    Quotes completed from July start date:

    Same thing with Sales?
    No, by inputs you will type in the month and year you are interested in and then find the following outputs.

    For instance I want to find all the received quotes for June 2010 without regard to the day. So, I'll go to column A and use column A as the reference to look up the input month and year values.

    I used the following equation, but it doesn't work:
    Please Login or Register  to view this content.
    Then from the found range, I want to find the completed quotes using the Quoted Date column (Column E) and separate quotes that were started in previous months and the current month.

    Is that possible?

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Finding, Counting, and Summing Multiple Variables in a Data Table

    Okay, you can use SUMPRODUCT instead of SUMIF (should have been COUNTIF anyway).

    =SUMPRODUCT(--(MONTH($A$2:$A$12000)=7),--(YEAR($A$2:$A$12000)=2010))

    The double unary (--) changes true/False to 1 or 0 and then sums them.

    To add completed Quotes, add another argument

    =SUMPRODUCT(--(MONTH($A$2:$A$12000)=7),--(YEAR($A$2:$A$12000)=2010),--(ISNUMBER($E$2:$E$12000))

    Is that what you are looking for?

  5. #5
    Registered User
    Join Date
    09-08-2010
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Finding, Counting, and Summing Multiple Variables in a Data Table

    The formula came up with a number, but it was wrong. What if we applied the following. I wrote this out on paper so I apologize for the crude format.

    COUNT the amount of quotes in the range E2:E12000, IF the start date is in May, AND the end date is in July

    The answer is 4.
    Last edited by shg; 09-08-2010 at 11:30 AM. Reason: deleted quote

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Finding, Counting, and Summing Multiple Variables in a Data Table

    Okay, I need to understand better so we're on the same page. What my formula did.....
    Formula 1, found out how many quotes were started in July (22) based on counting the number of July dates in Column A.
    Formula 2, found out how many of those quotes were actually quoted (?) based on having a date in Column E (19 out of the original 22).
    If you want to see how many started in May and ended in August, it would be this formula
    =SUMPRODUCT(--(MONTH($A$2:$A$12000)=5),--(YEAR($A$2:$A$12000)=2010),--(MONTH($E$2:$E$12000)=8), --(YEAR($A$2:$A$12000)=2010))
    In your example, there are 0 started in May

  7. #7
    Registered User
    Join Date
    09-08-2010
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Finding, Counting, and Summing Multiple Variables in a Data Table

    Oh, I apologize. Ok, yes, you are correct. Thank you very much!!

    May I ask how I get trained to create formulas like this? Are there classes online or schools that have excel training?

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Finding, Counting, and Summing Multiple Variables in a Data Table

    I learned from reading the threads in this forum and then trying them out. I know there are a lot of 1 day (or more) seminars and webinars out there. Just need to google them.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1