+ Reply to Thread
Results 1 to 6 of 6

Need help summing two columns of data if data is present in a third column

  1. #1
    Registered User
    Join Date
    01-03-2013
    Location
    Southgate, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    7

    Question Need help summing two columns of data if data is present in a third column

    Hello all,
    I'm looking to have a cell show the total pieces on hand in the yellow cell. To get the first value I need to sum the quantities in column B if there is a date in column C. Then in the yellow box I want the sum of the quantities in column F subtracted from the first value.

    So basically I only want it to recognize the quantity in column B if there is a date in column C. If the formula was in there the yellow cell would show 11.

    Can anyone help me out?

    Thanks,
    Matt
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Need help summing two columns of data if data is present in a third column

    first unmerge the cell then try this
    =SUM(IF((C3:C5<>""),B3:B5)) copy paste then hold control and shift then hit enter to make it array formula

    or

    Try this =SUMPRODUCT(--(C3:C5<>"")*(B3:B5)) and hit control enter
    Last edited by hemesh; 10-15-2013 at 09:03 AM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Need help summing two columns of data if data is present in a third column

    find attached with both formula.

    If this helps click" * " in the bottom left corner of my post and mark thread as solved.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-03-2013
    Location
    Southgate, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Need help summing two columns of data if data is present in a third column

    Thanks hemesh. Now i need it to subtract the sum of the values in column F.

    Cancel that.... I got it. Thanks again.

  5. #5
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Need help summing two columns of data if data is present in a third column

    You are welcome Mdaniels. If your query is solved then mark the thread as solved

  6. #6
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Need help summing two columns of data if data is present in a third column

    Thanks for the rep!!

+ 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. [SOLVED] enter formulas in adjacent columns if data is present
    By shnerswiss in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-15-2013, 03:09 PM
  2. Replies: 2
    Last Post: 03-07-2013, 02:16 PM
  3. [SOLVED] Auto Hiding rows based on range/data present or not present.
    By raze in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 02-10-2013, 11:27 AM
  4. Formula to display whether a text data is present or not in a column
    By shuresh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-11-2009, 03:42 AM
  5. [SOLVED] Make a macro run on rows/columns only if data is present?
    By bpreas - ExcelForums.com in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-09-2005, 03:05 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