+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Sum if but only if not already calculated

Hybrid View

  1. #1
    Registered User
    Join Date
    10-07-2011
    Location
    Stirling, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Sum if but only if not already calculated

    Hi folks

    First time poster so please point out any flaws and keep me right

    I have created a document that records cinema sales for my work recording various details.
    At the moment, in the run total column I have a formula that calulates the total each film made for all it's screenings. For example Love Like Poison made 43.80 over 3 screenings. What I want it to have the total only appear if it hasn't already been calculated. At the moment the total for that film appears in H3 H6 and H9. I only want it to appear in H3. Can anyone one help???

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Sum if but only if not already calculated

    This could probably be done with a formula, but I think it's a good practice to keep reporting and data separate. Take a look at the attached pivot report and see if it will get you what you need.
    Attached Files Attached Files
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  3. #3
    Registered User
    Join Date
    10-07-2011
    Location
    Stirling, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Sum if but only if not already calculated

    Thanks Thomas

    It does help and might be a useful way of reporting all results but tthe information is used elsewhere on the sheet. I only showed a section of the whole spreadsheet. Therefore if possible I would rather use a formula

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699

    Re: Sum if but only if not already calculated

    Try this formula in H3 copied down

    =IF(COUNTIF(A$3:A3,A3)=1,SUMIF(A:A,A3,G:G),"")
    Audere est facere

  5. #5
    Registered User
    Join Date
    10-07-2011
    Location
    Stirling, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Sum if but only if not already calculated

    This formula works a treat. Thank you so much guys for both quick and in both cases helpful answers

    I'm off to work out exactly how this formaula works

    thanks again

+ 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