+ Reply to Thread
Results 1 to 7 of 7

Excel (value) error question.

  1. #1
    Registered User
    Join Date
    11-02-2008
    Location
    Columbia
    Posts
    4

    Excel (value) error question.

    I am trying to figure pricing based on qty and height x length, but also have the value subject to a minimum. So in this example I have a quantity 4 with the length (3) x height (2). The price is based on another formulas that takes the 6 x 1.20 to give you the 7.2 but the minimum charge is 10.00.
    I created the formula below, but it gives me an value error. If anyone could help point me in the right direction, it would be great.



    QTY LENGTH HEIGHT TOTAL SIZE
    4 3 2 6


    CHARGE PER FORMULA CHARGE SUBJECT TO MINIMUM
    7.2 #VALUE!


    =IF(A4<3,E4<10,10),IF(A4<11,E4<8,8),IF(A4<35,E4<7.5,7.5),IF(A4<71,E4<7.25,7.25),IF(A4<143<6.5,6.5)
    Last edited by VBA Noob; 11-03-2008 at 03:38 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    to do that it would have to look like this
    Please Login or Register  to view this content.
    but this still wont work as
    A4<11,E4<8
    and
    A4<71,E4<7.25
    would still give same result for a4=6 e4=7 say
    Last edited by martindwilson; 11-02-2008 at 02:04 PM.

  3. #3
    Registered User
    Join Date
    11-02-2008
    Location
    Columbia
    Posts
    4

    Excel Formula Problem

    I still cannot get it to work. It says "False" in the cell.

    Thanks for your trouble.

    Eric

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,703
    Quote Originally Posted by GILLAN View Post
    I am trying to figure pricing based on qty and height x length, but also have the value subject to a minimum. So in this example I have a quantity 4 with the length (3) x height (2). The price is based on another formulas that takes the 6 x 1.20 to give you the 7.2 but the minimum charge is 10.00.
    I don't see where the other values in your formula come from.

    Given the description above it looks like you want to multiply length by height, subject to a minimum, and then multiply that result by the quantity, so for your example above, if quantity is in A4, length in B4 and height in C4 the following formula will give the result of 40

    =A4*MIN(10,B4*C4)

    Does that help at all?

  5. #5
    Registered User
    Join Date
    11-02-2008
    Location
    Columbia
    Posts
    4

    Formula Problem

    Attached is the layout and info I was trying to formulate.

    I would appreciate any help.

    Thanks,

    Eric
    Attached Files Attached Files

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,703
    Hello Eric

    I amended your sheet, attached. Does that work for you?

    I changed B2:I2 to show the lower bound for each range [the formulas don't work otherwise] then formula in E12 would be

    =LOOKUP(A12,$B$2:$I$3)*D12

    and F12

    =LOOKUP(A12,$B$2:$I$4)

    I assume for PRICE you want the maximum of those two, multiplied by the quantity so for PRICE in G12 I have

    =MAX(E12:F12)*A12
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-02-2008
    Location
    Columbia
    Posts
    4

    Solved- thanks

    That works!

    I appreciate your help. You are an asset to this forum.

    Thanks,

    Eric

+ 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