+ Reply to Thread
Results 1 to 4 of 4

IF statement with multiple variables and results

  1. #1
    Registered User
    Join Date
    04-22-2012
    Location
    new jersey
    MS-Off Ver
    Excel 2007
    Posts
    2

    IF statement with multiple variables and results

    Excuse me if I do not explain correctly but I will try to be as clear as I can. I am setting up a freight program for my shipping clerk. She is new to the position and I am trying to make the transition as easy as possible. Here is what I am trying to do.

    1. She will enter the dimensions of each item being shipped into three separate columns
    2. Result will appear in fourth
    3. This result will be broken down into cubic inches.
    4. The cubic inches number must be compared to the freight tariff codes. Example, if number is higher then 10 but less then 12 will result in a freight class. If lower then 10 but higher then 8 another class. And so on and so on.

    The IF statement will hold at least 12 variables and I was not sure if that is possible nor the correct syntax to write the formula. We recently switched to Office 2007 so I am learning as I go. Was trying to make this formula in last column so she knew what class to use for each shipment. I have everything set expect the important, i.e. hard, part. Any help would be appreciated. Thank you.

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: IF statement with multiple variables and results

    with 12 variables you might be better off using a lookup instead of an if statement, there are a few ways to do it, the easiest would be to include a list to lookup against, and a bit cleaner you could include it all int he formula, but it might be harder to read.
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Registered User
    Join Date
    04-22-2012
    Location
    new jersey
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: IF statement with multiple variables and results

    Not sure how I would accomplish this. I could embed the chart showing the freight classes and their corresponding numbers but how would I use a formula that would lookup a number that was in a range? Or are you saying just embed the list for comparative purposes and drop the formula due to size? Not sure I am comprehending what you are telling me. Thank you for the reply

  4. #4
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: IF statement with multiple variables and results

    sorry i was not very clear, the attached should help out, showing 2 different ways to do the same thing.
    Attached Files Attached Files
    Last edited by DGagnon; 04-22-2012 at 05:47 PM.

+ 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