+ Reply to Thread
Results 1 to 5 of 5

get value dependant on multiple columns!

  1. #1
    Registered User
    Join Date
    04-27-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    5

    get value dependant on multiple columns!

    Hi all, This is my first post so I apologize if this is the wrong room or i am not explaining myself very well.

    I have a sheet with (for example):

    Date-------- Description---Income---Balance
    01/01/2001--Work---------100.00----100.00
    02/01/2001--Parts---------50.00-----150.00
    02/01/2001--Work---------25.00-----175.00
    ---------------------------TOTAL----xxx.xx

    I need the TOTAL cell to be defined by:
    Adding up 'Income' from cells between date (defined by me) and (defined by me) with only description 'Work'

    Thanks for any help you could give me in regards to this.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,485

    Re: get value dependant on multiple columns!

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: get value dependant on multiple columns!

    hi burgensteen, welcome to the forum. assuming your data is in A2:D10, in that order you illustrated, then:
    =SUMPRODUCT((A2:A10>=--"1jan2001")*(A2:A10<=--"31jan2001")*(B2:B10="Work"),C2:C10)

    change the dates to what you need. if you refer it to a cell reference like G1 & H1, then:
    =SUMPRODUCT((A2:A10>=G1)*(A2:A10<=H1)*(B2:B10="Work"),C2:C10)

    next time though, attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    04-27-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: get value dependant on multiple columns!

    WOW...Thank you for the fast replies and my apologies for not posting a sample doc (will remember for future posts).
    I shall go try the formula and let you guys know.

    Thanks again.
    Jon

  5. #5
    Registered User
    Join Date
    04-27-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: get value dependant on multiple columns!

    Thank you for the help.
    The help you gave worked a treat

+ 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