+ Reply to Thread
Results 1 to 12 of 12

formula for totalling columns based on data in rows in another column

  1. #1
    Registered User
    Join Date
    05-10-2016
    Location
    Leeds
    MS-Off Ver
    Office 365 ProPlus
    Posts
    6

    formula for totalling columns based on data in rows in another column

    Hi,

    I need help with a formula please

    For example, in the screen shot attached, if there is a value is column AA, then the value in the corresponding row of column V is added. Therefore I can add all of column V together, but only if there is a value in column AA for those rows. Thanks
    Capture.PNG
    Last edited by CraigFOD; 05-10-2016 at 07:45 AM. Reason: Title change

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,179

    Re: Help with formula

    Please post a file with sample data and expected results. (Many of use cannot view PNG files).

    To upload a file, Click "Go Advanced" then "Manage Attachments".

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Help with formula

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  4. #4
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: Help with formula

    Hi Craig,

    What you want to do is say...
    If the value in AA is blank then leave a blank in V otherwise calculate the Estimated Total Profit i.e.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards,
    Stephen

    If you feel someone has helped you please thank them and click on the star on their post to add reputation.
    Please ensure that you use code tags where relevant, and mark solved threads as solved.
    Most of all please be respectful and understanding of others.

  5. #5
    Registered User
    Join Date
    05-10-2016
    Location
    Leeds
    MS-Off Ver
    Office 365 ProPlus
    Posts
    6

    formula for totalling columns based on data in rows in another column

    OK - can you change the title for me then - It needs to say "formula for totalling columns based on data in rows in another column" then if that's better?

    All I am asking for is a little help here guys :-)
    Last edited by CraigFOD; 05-10-2016 at 07:44 AM. Reason: Title change

  6. #6
    Registered User
    Join Date
    05-10-2016
    Location
    Leeds
    MS-Off Ver
    Office 365 ProPlus
    Posts
    6

    Re: formula for totalling columns based on data in rows in another column

    Example.xlsx

    Excel file attached

  7. #7
    Registered User
    Join Date
    05-10-2016
    Location
    Leeds
    MS-Off Ver
    Office 365 ProPlus
    Posts
    6

    Re: Help with formula

    Hi,

    I have now uploaded my example document as requested to help with my question, thanks

  8. #8
    Registered User
    Join Date
    03-20-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office Professional Plus 2007
    Posts
    25

    Re: formula for totalling columns based on data in rows in another column

    Hi, CraigFOD, I dont know if I Fully understand your problem, This might Help!
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    05-10-2016
    Location
    Leeds
    MS-Off Ver
    Office 365 ProPlus
    Posts
    6

    Re: formula for totalling columns based on data in rows in another column

    HI, thanks I've tested it but it doesn't work

    Let me explain in more detail. So, I want to calculate how much profit I have quoted my customers, but only based on the quotes that went ahead. So if there is a value in column AA that means that the quote went ahead and turned into a sale. So for all of these "sales" I want to add up what the expected profit was which is in column V

    The ones that did not turn into a sale therefore have no value in column AA and therefore the "Estimated Profit" in column V I do not want to add up.

    So it's basically counting all of column V but ignoring the rows whereby the sale did not happen.

    Does that make more sense?

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,179

    Re: formula for totalling columns based on data in rows in another column

    Try

    =SUMIF(AA:AA,"<>",V:V)

  11. #11
    Registered User
    Join Date
    05-10-2016
    Location
    Leeds
    MS-Off Ver
    Office 365 ProPlus
    Posts
    6

    Re: formula for totalling columns based on data in rows in another column

    It works now how I wanted to, I just changed "Column AA does not Contain any value" in your formula to "0" then I can total this row

    Brilliant, thank you !

  12. #12
    Registered User
    Join Date
    03-20-2015
    Location
    Philippines
    MS-Off Ver
    Microsoft Office Professional Plus 2007
    Posts
    25

    Re: formula for totalling columns based on data in rows in another column

    Yes it will really work, Include this one too
    Please Login or Register  to view this content.
    to leave Cell V to Blank also, cause if your Coloumn AA is Blank, Cell V will Return Error. Try to past this in your Cell V, under cell with Value 49.00, then try to delete value in Cell AA (Value 4450).
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  2. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

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