+ Reply to Thread
Results 1 to 14 of 14

Formula to return multiple criteria in one cell

  1. #1
    Registered User
    Join Date
    07-12-2016
    Location
    massachusetts
    MS-Off Ver
    excel 2010
    Posts
    44

    Formula to return multiple criteria in one cell

    Hi!

    I'm working on a formula for eligibility (insurance). Essentially I have a massive sheet showing eligibility by benefit (A1 would be Medical Insurance, A2 would be either Eligible or Not Eligible, for example).

    I was attempting to make an IF statement that would bring every eligible benefit into one cell, but I'm not entire sure this is the right approach. Cells M2:AR2 are various benefits, each with either that "Eligible" or "Not Eligible" indicator.

    Without listing the entire formula, which didn't exactly get the job done, my format was this:

    =IF(M2="Eligible","Medical Eligible"&IF(N2="Eligible",", Med2 Eligible"&IF(O2="Eligible",", MedPPO Eligible"&IF(P2="Eligible",", MedPPO PHARM Eligible"&IF(Q2="Eligible",", MedPPO VAC Eligible"&IF(R2="Eligible",", Gap Eligible","Not Eligible"))))))

    The formula brings over just one benefit rather than each eligible.

    I'm ultimately attempting to create a cell that shows "Medical Eligible, Gap Eligible, Disability Eligible," etc dependent on cells M2:AR2.
    Attached Files Attached Files
    Last edited by coryjacques; 12-01-2017 at 12:24 PM.

  2. #2
    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
    27,997

    Re: Formula to return multiple criteria in one cell

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Formula to return multiple criteria in one cell

    Please use this formula. if not eligible it will blank & only eligible scheme will be shown. Set wrap text for the cell you are using the below formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by than_gold; 12-01-2017 at 12:24 PM. Reason: miss to give update on wrap text
    Regards,
    Thangavel D

    Appreciate the help? CLICK *

  4. #4
    Registered User
    Join Date
    07-12-2016
    Location
    massachusetts
    MS-Off Ver
    excel 2010
    Posts
    44

    Re: Formula to return multiple criteria in one cell

    I've attached a copy of the workbook. I wasn't able to get the CONCAT(IF function to return anything unfortunately.

  5. #5
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Formula to return multiple criteria in one cell

    checking on it, there are 32 cells need to incorporate into one cell formula

  6. #6
    Registered User
    Join Date
    07-12-2016
    Location
    massachusetts
    MS-Off Ver
    excel 2010
    Posts
    44

    Re: Formula to return multiple criteria in one cell

    I can consolidate a ton of these, it will cut that down to most likely 10 cells. I'm just looking to see if a formula along these lines is possible before I cut down data. This formula would ultimately allow me to cut down the amount of cells.

  7. #7
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Formula to return multiple criteria in one cell

    Here you go, I've updated the formula to cover 10 cells till col L.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    07-12-2016
    Location
    massachusetts
    MS-Off Ver
    excel 2010
    Posts
    44

    Re: Formula to return multiple criteria in one cell

    At the risk of sounding dumb, I'm not familiar with the CHAR function. When I select his formula or when dragging it down to other cells, the formula breaks. Any tips?

  9. #9
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Formula to return multiple criteria in one cell

    Char(10) - to enter New line (Ctrl+Enter to get new line in cell). I've updated with $ symbol in formula for absolute reference of cell. Please refer the excel sheet.
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Formula to return multiple criteria in one cell

    do you want to extend this formula till col AH?!

  11. #11
    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
    27,997

    Re: Formula to return multiple criteria in one cell

    Please Login or Register  to view this content.
    =get_eligible(B2:ZZ2,"Eligible")
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    07-12-2016
    Location
    massachusetts
    MS-Off Ver
    excel 2010
    Posts
    44

    Re: Formula to return multiple criteria in one cell

    That's pretty interesting, I like it! I created it in Visual Basic and tried running it for cells K2:AR2 and I was having some issues (did this on the real sheet, not the one posted). Is there anything in the coding I need to change to compensate for the different cells? I'm not much of a coder.

    Thanks!

  13. #13
    Registered User
    Join Date
    07-12-2016
    Location
    massachusetts
    MS-Off Ver
    excel 2010
    Posts
    44

    Re: Formula to return multiple criteria in one cell

    I got this to work! Thanks!

  14. #14
    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
    27,997

    Re: Formula to return multiple criteria in one cell

    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. Formula return statements on multiple criteria
    By welshman010 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-21-2014, 08:34 PM
  2. [SOLVED] Is there a formula that can Return a text value if multiple criteria are met?
    By beyjul in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-30-2014, 03:06 PM
  3. [SOLVED] How to return multiple values to a single cell based on multiple criteria
    By lwallace in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-20-2014, 06:32 AM
  4. Replies: 2
    Last Post: 05-12-2014, 08:21 AM
  5. Replies: 4
    Last Post: 03-27-2014, 01:09 PM
  6. [SOLVED] Formula to Return ID based on Multiple Criteria
    By boldcode in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-09-2013, 02:54 PM
  7. [SOLVED] Need a formula that can check multiple criteria and return a value.
    By DeeJay256 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-28-2012, 09:28 AM

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