+ Reply to Thread
Results 1 to 7 of 7

match list with another column if within min/max range, assign categories

  1. #1
    Registered User
    Join Date
    01-23-2019
    Location
    Oakland, California
    MS-Off Ver
    15.13.3
    Posts
    2

    match list with another column if within min/max range, assign categories

    Hi everyone!

    I currently have two data sets. 1) Survey responses- containing household size and income and 2) a federal poverty level matrix - containing household size, min/max income, and poverty level in percentage. And what I want to do is match household size in the survey responses with the corresponding household income brackets to determine which % of poverty level this respondent is in.

    So if I use the first data point on sheet 1 as an example, I have a family of 5, with annual income of $100,000. I would then take that, go to the second tab, and see that this range corresponds to row 16, making this respondent in the 300-400%FPL category.

    So far, I've been using this formula for every household size, but I'm sure there's a more efficient way of doing this.
    =IF(AND(R14<=FPL!$C$19,Q14=1),"<225%",IF(AND(R14<=FPL!$C$20,R14>=FPL!$B$20,Q14=1),"225-300%",IF(AND(R14<=FPL!$C$21,R14>=FPL!$B$21,Q14=1),"300-400%", etc.

    Thank you for reading!!
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: match list with another column if within min/max range, assign categories

    Please try at C2

    =LOOKUP(2,1/('FPL Guideline'!$A$2:$A$43=A2)/('FPL Guideline'!$B$2:$B$43<=B2)/('FPL Guideline'!$C$2:$C$43>B2),'FPL Guideline'!$D$2:$D$43)

    Row 4 shows #N/A because 4 People Annual Income $100,440 is more than maximum in guideline row 16 100,400.
    You may need to increase maximum or add data for more than 100,400.
    Attached Files Attached Files

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: match list with another column if within min/max range, assign categories

    Bo check me on this. I don't think we need column C Max. Which means your formula is fine. Just do this with it.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If the greatest Min for family of 4 is less than income that's all we need. Anything greater than the Max seems to me irrelevant. Everything off scale is in the last % FPL. Makes me wonder why any Max exists for the last family/% FPL category.
    Dave

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: match list with another column if within min/max range, assign categories

    Dave, you're right. We don't need Max

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: match list with another column if within min/max range, assign categories

    _______________

  6. #6
    Registered User
    Join Date
    01-23-2019
    Location
    Oakland, California
    MS-Off Ver
    15.13.3
    Posts
    2

    Re: match list with another column if within min/max range, assign categories

    Thank you so much for your help!!!

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,407

    Re: match list with another column if within min/max range, assign categories

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Assign values to categories of values based on separate column attribute.
    By jenbot83 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-06-2017, 02:17 PM
  2. Replies: 13
    Last Post: 10-11-2016, 10:29 AM
  3. [SOLVED] Help Required: Assign Values to Categories
    By Aerodynamix in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 12-08-2015, 01:09 PM
  4. [SOLVED] Compare value on a range if match list linked column
    By ricklou in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-28-2015, 01:54 PM
  5. [SOLVED] assign values to categories
    By Neico in forum Excel General
    Replies: 3
    Last Post: 10-03-2013, 03:44 PM
  6. [SOLVED] Pull Certain Categories From List with INDEX + MATCH
    By bxk006 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-23-2013, 07:41 PM
  7. list box fill range to be taken from dynamic column heading match
    By kuraitori in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-30-2009, 12:45 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