+ Reply to Thread
Results 1 to 7 of 7

Thread: Issue summing one colomn using data from another

  1. #1
    Registered User
    Join Date
    08-11-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    3

    Issue summing one colomn using data from another

    Hi guys fairly new to the whole excel formulas outside of basic summing.
    What I'm trying to do is taking values from Colomn C and adding them up based on if the info in Colomn D is Yes or No

    I'm stumped, I've tried a couple different things but they dont work out. If someone could give me a hand and getting a code to work I would very much appreciate it.

    Also if possible give some tips on what would be needed to setup a drop down box to modify and show only those sums based on the yes or no.

    Thanks
    Attached Files Attached Files
    Last edited by littleman; 08-11-2010 at 01:20 PM.

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,224

    Re: Issue summing one colomn using data from another

    In C19, try this:

    =SUMIF(D5:D18, "<>Y", C5:C18)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-11-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Issue summing one colomn using data from another

    Thanks for the quick reply, I tried that out and it works with what I'm basically looking to do slight mod to use either Y or N.

    Now to work on a drop box to easily access this info

  4. #4
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,224

    Re: Issue summing one colomn using data from another

    I didn't use the Y/N thing because in my opinion, the only value that is a concern is "Y". If the value is Y then the ticket is canceled. Any other value means "no", whether its "N" or blank or "cat"...only "Y" means canceled.

    Your data layout does not lend itself to simple AutoFilter drop down filtering. You only get one per sheet.

    Your best bet may be Excel's LIST feature. Highlight one set of data and press CTRL-L, click on [x] My list has headers...and OK.

    Repeat for each of our sets and you now have drop downs you can use.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  5. #5
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,224

    Re: Issue summing one colomn using data from another

    Change the formula in C18 to:

    =SUBTOTAL(109, C4:C17)


    Now use the drop down in column D created when you turned on the LIST function to filter for just Y and the subtotal will display a total only for the visible rows.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  6. #6
    Registered User
    Join Date
    08-11-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Issue summing one colomn using data from another

    just tried your new formula and have to say that works out better and is fairly simple to change over.

    Again thanks so much saved me time and headache

  7. #7
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,224

    Re: Issue summing one colomn using data from another

    SUBTOTAL() has 22 different functions, press F1 and read up on them all, very useful function.

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

+ 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.2.0