+ Reply to Thread
Results 1 to 4 of 4

How to simplify this formula?

  1. #1
    Registered User
    Join Date
    03-13-2008
    Posts
    87

    How to simplify this formula?

    Hello there,

    Is there a way to simplify this If Statement forumla?

    Basically I have a dropdown list that selects form the range: C21-C34 then in E21-E34 I have prices that change per line item. This If Statement is working, but it's long and cumbersome. Plus if I ever need to add any line items it won't work. Is there a way to use sumproduct or something else that will look at the dropdown list in C39 and pull from the appropriate match in C21-C34 and list the price in Column E in same row?

    Please Login or Register  to view this content.
    I have posted my example as well.

    Thanks,
    Lorne
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to simplify this formula?

    use
    =VLOOKUP(C39,C21:E34,3,FALSE)
    Last edited by martindwilson; 09-24-2012 at 05:16 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: How to simplify this formula?

    =index($e$21:$e$34,match(c39,$c$21:$c$34,0))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Registered User
    Join Date
    03-13-2008
    Posts
    87

    Re: How to simplify this formula?

    Thanks for the quick reply guys...the VLOOKUP worked great. Now next question.

    I want to calculate the cost from another table, with two if conditions. If F39 is <25 and G39=1 then it should equal C4. Then if F39 is 25-49 and G39=2 then it should equal D5. I've updated the sample on the attachements.

    Thanks,
    Lorne
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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