Results 1 to 5 of 5

Looking up lab codes: Returning specific cell value based on combination of TRUE cells

Threaded View

  1. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,641

    Re: Looking up lab codes: Returning specific cell value based on combination of TRUE cells

    Hi there,

    Take a look at the attached version of your workbook and see if it does what you need. It uses the following formula in Cell H9 of worksheet "Sheet2":

    
    =A9  *  IF(B9 = "YES",  B$1,  NOT(B$1))  *  IF(C9 = "YES",  B$2,  NOT(B$2))  *  IF(D9 = "YES",  B$3,  NOT(B$3))  *  IF(E9 = "YES",  B$4,  NOT(B$4))  *  IF(F9 = "YES",  B$5,  NOT(B$5))
    This formula is copied downwards as far as Cell H14.


    Cell B23 of worksheet "Sheet1" contains the following formula:

    
    =IF(MAX(Sheet2!H9:H14) = 0,  "Not Defined",  MAX(Sheet2!H9:H14))

    It should not be too difficult for you to expand the above logic to cater for additional texts and combinations.


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 01-16-2019, 12:35 PM
  2. [SOLVED] searching combination of 2 cells based on a value of 1 cell
    By k1dr0ck in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-14-2018, 11:10 PM
  3. [SOLVED] Returning a specific value based on one value in a range of cells.
    By stevensimon10482 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-03-2017, 08:15 PM
  4. sort all white fill cell on column I based on cell value specific txt if (true)
    By raijinlee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2017, 01:57 AM
  5. Replies: 10
    Last Post: 01-26-2015, 11:03 AM
  6. Replies: 3
    Last Post: 11-06-2014, 01:00 PM
  7. Enter value in cell based on value combination of two other cells
    By jobell in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-22-2013, 10:40 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