+ Reply to Thread
Results 1 to 8 of 8

Please help writing a formula based on the following table!

  1. #1
    Registered User
    Join Date
    05-11-2017
    Location
    Jax
    MS-Off Ver
    2013
    Posts
    4

    Please help writing a formula based on the following table!

    Weight Lbs Shipping
    1 to 7 Lbs $14
    8 Lbs $16
    9 Lbs $18
    10Lbs $20
    11 Lbs $22
    12 Lbs $24
    13 Lbs 26
    14 Lbs $28
    15 Lbs $30
    16 to 110 Lbs $2 per additional lb

  2. #2
    Registered User
    Join Date
    01-19-2017
    Location
    Michigan
    MS-Off Ver
    2013
    Posts
    92

    Re: Please help writing a formula based on the following table!

    Uh...some context would help. What exactly do you want the formula to do. This forum does not have mind readers.

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,935

    Re: Please help writing a formula based on the following table!

    I see a lookup table somewhere in that list of text, which suggests a lookup function (maybe VLOOKUP() https://support.office.com/en-us/art...8-93a18ad188a1 ) to access information in the lookup table.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    05-11-2017
    Location
    Jax
    MS-Off Ver
    2013
    Posts
    4

    Re: Please help writing a formula based on the following table!

    I have the excel file but when I click on the clip button to attach it, nothing happens.....

  5. #5
    Registered User
    Join Date
    05-11-2017
    Location
    Jax
    MS-Off Ver
    2013
    Posts
    4

    Re: Please help writing a formula based on the following table!

    I want a formula to give the correct value from that table. If the package weights between 1 and 7 lbs, the charge is $14. If the package weights 8 lbs the charge is $18, if the weight is 9 lbs the charge is $20 and so forth and so on up to 15 lbs with a charge of $30. Then when the package weights between 16 and 110 lbs, the charge is $2 per additional pound.

    The formula takes a value from a specific cell and calculates the charge according to the weight entered in that cell.

    I appreciate any help

    Thanks!

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,935

    Re: Please help writing a formula based on the following table!

    Did you have a look at the help file for the VLOOKUP() function? What you describe is exactly what a lookup table + lookup function should do. In your case (contrary to MS's examples), you will want the 4th argument of VLOOKUP() to be TRUE, so spend some time with the help file to understand how that changes the lookup algorithm.

    What part(s) of building a lookup table are you having trouble understanding? What parts of using the VLOOKUP() function are you having trouble with?

  7. #7
    Registered User
    Join Date
    05-11-2017
    Location
    Jax
    MS-Off Ver
    2013
    Posts
    4

    Re: Please help writing a formula based on the following table!

    I think I understand Vlooup(), let me ask you a dumb question if you don't mind, a table with 110 rows must created to use VLOOKUP() to accomplish what I want? It might be just as simple as that. Creating a formula with a bunch of IF, AND, ELSE statements might be overthinking a simple task.

    By the way, thanks for quick reply!

  8. #8
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,935

    Re: Please help writing a formula based on the following table!

    a table with 110 rows must created to use VLOOKUP() to accomplish what I want?
    If you use FALSE for the 4th argument, then you probably will need 110 rows. However, if you use TRUE for the 4th argument, then you should only need the same 10 rows you show in post 1. The lookup table would look something like:
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Help with writing a formula to calculate based on a range of numbers
    By hapahoale in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-25-2016, 10:24 AM
  2. Writing a formula for returning a text value based on multiple criteria
    By DataAnalyst215 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-27-2016, 06:55 PM
  3. getting table name while writing formula using insert function
    By paramnayak in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-31-2013, 09:57 AM
  4. Writing to cell in table based on column and row names
    By teacher_rob in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-09-2011, 11:17 PM
  5. (TABLE) Help writing formula to display column header of a result
    By scarch05 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 10-15-2011, 04:40 AM
  6. Writing a Formula based on UserForm input
    By MichelleW in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-06-2009, 11:15 AM
  7. Replies: 5
    Last Post: 11-09-2007, 01:42 PM

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