+ Reply to Thread
Results 1 to 10 of 10

Vlookup table solution

  1. #1
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Vlookup table solution

    Hi, my name is Rachel, and I'm referencing a thread i just closed yesterday. I came across another problem before i should have titles the previous thread solved. Here is the link to the thread if anyone is interested in reading.

    http://www.excelforum.com/excel-form...ith-dates.html

    Here's my situation.

    In the sheet titled "BABY LINE" I have a column AU called "Transaction Fees". With this company there are two forms of payment that a customer can choose when checking out and each option has a different transaction fee associated with them. For example:

    Etsy payment = 3.0% of the total transaction + $.25
    Paypal payment = 2.9% of the total transaction + $.30

    Total Transaction = Total Customer Cost (Column AP in "Baby Line")

    The payment option is listed in the sheet titled "SHIPPING INFORMATION" Q23:Y28 (highlighted in yellow).

    Now my problem is creating a Vlookup similar to the older thread that allows me the option of changing the transaction fees of each payment option at a future date without losing prior data.

    Let's say those fees listed above are the current fees as of 8/26/2015 and all the items i sell going forward will have fees calculated based on those numbers above. Now let's say in 3 months the fees for paypal change (increase of decrease), but the fees for Etsy stay the same, or vice versa. I want the items sold after the date of the fee change to adjust going forward without compromising the fees associated prior to the change. Sometimes the fees for both payment options will change at the same time and sometimes they won't, sometimes one will change and the other will remain the same, sometimes the flat fee of $.25 or $.30 will change, but the percents remain the same, etc.

    I'd like to link it to the "Sale Date" column (AR) in "Baby Line" with an effective date column in "Shipping Information", but I don't know how to utilize more than one form of payment when compared to the solutions offered in the previous thread.

    Can someone provide me a solution or at least point me in the right direction because I'm sort of confused right now?

    Thank you in advance!!!

    Rachel
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Vlookup table solution

    I can see two ways round this. One quicker and simpler than the other, but the more complex and time consuming one.

    The quick way would be a worksheet change event so when you alter a value in a specific column the transaction cost is calculated and stamped to the sheet as a value rather than the result of a formula. That would allow you to change the lookup table at will and wouldn't affect any previous data.

    The more complex approach would be a UserForm for data entry. The transaction fee is then generated on the fly and stamped to the relevant column so works similarly to my first option but with the added bonus that it's easier to use for data entry compared with scrolling along a worksheet that takes up many columns.

    Either of those options interest you?

    BSB

  3. #3
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Vlookup table solution

    Quote Originally Posted by BadlySpelledBuoy View Post
    I can see two ways round this. One quicker and simpler than the other, but the more complex and time consuming one.

    The quick way would be a worksheet change event so when you alter a value in a specific column the transaction cost is calculated and stamped to the sheet as a value rather than the result of a formula. That would allow you to change the lookup table at will and wouldn't affect any previous data.

    The more complex approach would be a UserForm for data entry. The transaction fee is then generated on the fly and stamped to the relevant column so works similarly to my first option but with the added bonus that it's easier to use for data entry compared with scrolling along a worksheet that takes up many columns.

    Either of those options interest you?

    BSB
    I wasn't aware of said changes, and am a little confused as what you mean without actually seeing it, so yes I'm very interested in both options.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Vlookup table solution

    OK, we'll go for the first option (to start with). When filling out the spreadsheet I presume when you input data into this workbook you start at column A and work your way across. If that's the case, at which point would the transaction fee calculate? i.e. which column would you complete that would be the trigger for transaction fee to calculate?

    As mentioned, a UserForm solution would take a little while to put together and I'd need to know more about the way you work to provide something that fits your needs.

    BSB

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Vlookup table solution

    See attached:

    I have created two lookup tables: Etsy and Paypal. Both have "Effective from" dates , % uplift and "constant".(Sheet1)

    These work in the same way as previous solutions I have supplied.

    Formula in AU7

    =IF(AT7="etsy",VLOOKUP(AR7,Sheet1!$A$2:$C$5,2)*AP7+VLOOKUP(AR7,Sheet1!$A$2:$C$5,3),VLOOKUP(AR7,Sheet1!$D$2:$F$5,2)*AP7+VLOOKUP(AR7,Sheet1!$D$2:$F$5,3))

    See attached.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Vlookup table solution

    Quote Originally Posted by JohnTopley View Post
    See attached:

    I have created two lookup tables: Etsy and Paypal. Both have "Effective from" dates , % uplift and "constant".(Sheet1)

    These work in the same way as previous solutions I have supplied.

    Formula in AU7

    =IF(AT7="etsy",VLOOKUP(AR7,Sheet1!$A$2:$C$5,2)*AP7+VLOOKUP(AR7,Sheet1!$A$2:$C$5,3),VLOOKUP(AR7,Sheet1!$D$2:$F$5,2)*AP7+VLOOKUP(AR7,Sheet1!$D$2:$F$5,3))

    See attached.
    Thank You John, I'm downloading now and will check it out.

  7. #7
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Vlookup table solution

    Quote Originally Posted by BadlySpelledBuoy View Post
    OK, we'll go for the first option (to start with). When filling out the spreadsheet I presume when you input data into this workbook you start at column A and work your way across. If that's the case, at which point would the transaction fee calculate? i.e. which column would you complete that would be the trigger for transaction fee to calculate?

    As mentioned, a UserForm solution would take a little while to put together and I'd need to know more about the way you work to provide something that fits your needs.

    BSB
    It would calculate at column AS.

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Vlookup table solution

    Change AR7 to AS7. You said AR is your original posting!

  9. #9
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Vlookup table solution

    Quote Originally Posted by BadlySpelledBuoy View Post
    OK, we'll go for the first option (to start with). When filling out the spreadsheet I presume when you input data into this workbook you start at column A and work your way across. If that's the case, at which point would the transaction fee calculate? i.e. which column would you complete that would be the trigger for transaction fee to calculate?

    As mentioned, a UserForm solution would take a little while to put together and I'd need to know more about the way you work to provide something that fits your needs.

    BSB
    What other information do you need?

  10. #10
    Forum Contributor
    Join Date
    02-27-2015
    Location
    Los Angeles, California
    MS-Off Ver
    office 2010 pro
    Posts
    238

    Re: Vlookup table solution

    Quote Originally Posted by JohnTopley View Post
    Change AR7 to AS7. You said AR is your original posting!
    Worked like a charm again, thank you so much!!

+ 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. [SOLVED] Need help using table references in VLOOKUP (or alternative solution)
    By chandlerweb in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-18-2015, 04:34 AM
  2. Replies: 5
    Last Post: 09-24-2014, 04:20 AM
  3. [SOLVED] Vlookup solution - probably
    By FraserT in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-26-2014, 06:21 AM
  4. Replies: 1
    Last Post: 01-10-2012, 03:33 PM
  5. Replies: 2
    Last Post: 05-19-2010, 05:14 AM
  6. Is VLookup the best solution?
    By NickNick in forum Excel General
    Replies: 5
    Last Post: 04-30-2009, 04:29 AM
  7. solution:How do I expand columns in a table and auto change vlookup in wrks
    By Vasant Nanavati in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 04:05 AM

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