+ Reply to Thread
Results 1 to 3 of 3

Combining Look-up, If and Sumifs

  1. #1
    Registered User
    Join Date
    05-31-2010
    Location
    Manila
    MS-Off Ver
    Excel 2007
    Posts
    88

    Combining Look-up, If and Sumifs

    I have a very complicated formula which I don't know if it's even possible.

    My Conditions are:

    Look-up code(F3 = Code 03) from column A
    Then compare quantity(G3) to 1st row of Code 03.

    Is G3 less than B12(Code 03 1st row)? If yes, return D12 to H3
    If No, is G3 less than B12+B13(1st and 2nd row of Code 03)?
    If this time yes, return B13 to H3
    If No again, is G3 less than B12+B13+B14(1st, 2nd & 3rd)?
    If this time yes, return B14 to H3
    and so on.....

    I attached a sample file for you to look at...

    For Columns I and J, I'm still trying to figure out what are the conditions that I need to return the data.
    But if you can help me with that also it'll be great!


    Thanks in advance for helping!!!
    Attached Files Attached Files
    Last edited by geng; 08-04-2010 at 08:40 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Combining Look-up, If and Sumifs

    Doing this with single cell calculations would be quite complex and inefficient I think... moreover returning the concatenated strings would prove very difficult without use of either VBA or Helper cells.

    Below is one approach which though not elegant does do what you want - I think...

    Using your sample file:

    Please Login or Register  to view this content.
    With the above in place you can now create your summary table formulae

    Please Login or Register  to view this content.
    the results with the above in place replicate all of your expected results.

    edit: added working example for sake of demo.
    Attached Files Attached Files
    Last edited by DonkeyOte; 08-03-2010 at 02:31 AM.

  3. #3
    Registered User
    Join Date
    05-31-2010
    Location
    Manila
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: Combining Look-up, If and Sumifs

    Thanks Donkey Ote! I didn't even think my problem has a solution, this is great. Thank you very much!

+ 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