+ Reply to Thread
Results 1 to 3 of 3

Vllookup using two values in two columns

  1. #1
    Registered User
    Join Date
    08-11-2014
    Location
    North Carolina
    MS-Off Ver
    MS Office and Home 2013
    Posts
    2

    Vllookup using two values in two columns

    First post here....

    I am creating a payroll spreadsheet that will look up tax deductions from a spreadsheet I pulled from the IRS website. The first two columns represent a range of values the employee's pay would fall between. The first column is "paid at least" and the second column is "but paid less than". Once I locate which row the employee's wages fall between, I would then need to match their number of withholdings with the corresponding column. Columns 3, 4 and 5 have headings to represent 0, 1 or 2 withholdings. The value I need returned would be the intersection of wages paid and withholdings. For my spreadsheet example, if the employee's wages are 1,023 and they have 1 withholding, I need the formula to return 147. I was able to find a vlookup/match formula but it worked only without a range of wages paid. For example, if the employee was paid exactly 1,030 and had 1 withholding, it would vlookup/match to return 147. Obviously, this won't work with me needing to find the correct row based on where their wage falls in the ranges.

    Many thanks for any help!!!!!!!


    I've attached a picture of the spreadsheet example below.
    payroll example.jpg

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Vllookup using two values in two columns

    It's easier if you upload an example sheet instead of a picture (Go Advanced>Manage Attachments) but

    assuming your tax table is in a sheet called TaxTable and your Pay is in A1 and Exemptions in A2

    =INDEX(TaxTable!$C$3:$E$7, MATCH(A1, TaxTable!$A$3:$A$7), MATCH(A2, TaxTable!$C$2:$E$2,0))
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    08-11-2014
    Location
    North Carolina
    MS-Off Ver
    MS Office and Home 2013
    Posts
    2

    Re: Vllookup using two values in two columns

    MANY thanks, ChemistB. Your formula worked perfectly. I'll make note of the preferred example attachment method.

+ 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. vllookup to run a formula
    By jcc5018 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-10-2014, 06:58 PM
  2. [SOLVED] Countif for odd columns with vllookup? Not sure on the best way to proceed
    By lesoies in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-06-2013, 06:22 PM
  3. [SOLVED] vllookup problem
    By Marvo in forum Excel General
    Replies: 16
    Last Post: 11-13-2012, 09:57 AM
  4. Excel 2007 : VLLOOKUP help needed
    By kalles in forum Excel General
    Replies: 1
    Last Post: 04-30-2012, 08:48 AM
  5. Vllookup(Text
    By jamphan in forum Excel General
    Replies: 2
    Last Post: 06-04-2007, 02:30 PM

Tags for this Thread

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