+ Reply to Thread
Results 1 to 3 of 3

Find values position in table between two values, multiply by adjacent value

  1. #1
    Registered User
    Join Date
    08-16-2011
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2007
    Posts
    2

    Find values position in table between two values, multiply by adjacent value

    Hi,
    First post here as i'm stumped. Love the forum...Need to find the position in a table a value is in between, then multiply that value by the price adjacent to that position in the table. Complicated by having 3 tables, apples oranges and peaches. An order of 3 Lb of Apples should total $4.5 (G4). An order 10 Lb order of peaches should price at $13 (G4), but using the below does not redirect to correct position in the correct table.

    =IF(AND(G2=B25,G3>=A20),G3*C4,IF(AND(G2=B26,G3>=A20,G3<=B20),C9*G3,IF(AND(G2=B27,G3>=A20,G3<=B20),G3*C14)))

    I have 12 values in each apples, oranges and peaches in actuality so a nested if would be very complicated and likely run into the limit allowed quickly...there's got to be a better way.

    Thanks for your feedback!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-28-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    157

    Re: Find values position in table between two values, multiply by adjacent value

    After adding a zero to A19, this formula seems to work...
    Please Login or Register  to view this content.
    Beau Nydal
    Attached Files Attached Files
    Last edited by beaunydal; 08-18-2011 at 08:01 PM. Reason: Reference to the formula being an array formula removed. It is a standard formula.

  3. #3
    Registered User
    Join Date
    08-16-2011
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Find values position in table between two values, multiply by adjacent value

    Beau,
    Indeed it does. Thanks for the solution, appears to work like a charm.

    Best,
    Brad

+ 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