+ Reply to Thread
Results 1 to 5 of 5

Unknown Formulae (When several values are Equal/Greater than)

Hybrid View

Geforce Unknown Formulae (When... 04-24-2008, 07:57 AM
NBVC Not sure which of D7 or D8... 04-24-2008, 08:15 AM
Geforce Hi HBVC and thanks for the... 04-24-2008, 09:51 AM
NBVC You can set up a table on the... 04-24-2008, 10:01 AM
Geforce Yeah, scrap my post, I... 04-24-2008, 10:08 AM
  1. #1
    Registered User
    Join Date
    04-24-2008
    Posts
    13

    Question Unknown Formulae (When several values are Equal/Greater than)

    Hi to all,

    I'll get straight down to business.

    D7 = Value in mm (Container Length)
    D8 = Value in mm (Container Width)

    J22 = Cost of lining a container.

    However, depending on the size of the container, the value that J22 is multiplied by chages, as is not pro-rata.

    I'll explain:

    If D7 < 6095, then J22 * 64.59
    If D7 => 6096 < 9143, then J22 * 56.52
    If D7 => 9144 < 12192, then J22 * 54.28
    If D7 => 12192, then J22 * 50.80

    Also,

    If D8 > 2438, then J22 * 50.80.

    How do I encorporate that into cell J22?
    Last edited by Geforce; 04-24-2008 at 08:07 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Not sure which of D7 or D8 takes precedence, but assuming its D8...

    In any cell other than D7,D8 or J22...

    =J22*If(D8>2438,50.80,Lookup(D7,{0,6096,9144,12192},{64.59,56.52,54.28,50.80})
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-24-2008
    Posts
    13
    Quote Originally Posted by NBVC
    Not sure which of D7 or D8 takes precedence, but assuming its D8...

    In any cell other than D7,D8 or J22...

    =J22*If(D8>2438,50.80,Lookup(D7,{0,6096,9144,12192},{64.59,56.52,54.28,50.80})
    Hi HBVC and thanks for the immediate reply.

    I've been playing with your cell input suggestion and it works just fine with a few small amendments, however, the values 64.59 56.52 54.28 and 50.80 are not static - They are variable and need linking in with another cell/form.

    When I try to change the value in the Array to the Cell specific with the value, it just throws up errors. Is there a way around this do you know?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You can set up a table on the side which list the bottom ranges and the corresponding factor... then reference that in the formula..

    e.g. if you setup the table in X1:Y4

    =J22*If(D8>2438,50.80,Lookup(D7,$X$1:$Y$4))

  5. #5
    Registered User
    Join Date
    04-24-2008
    Posts
    13
    Yeah, scrap my post, I figured I could just remove the brackets and type for example

    L7:L10



    Thanks again.

+ 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