+ Reply to Thread
Results 1 to 1 of 1

Adding a condition to an array that checks a cell and then checks 5 columns before

  1. #1
    Registered User
    Join Date
    11-12-2014
    Location
    Greenland
    MS-Off Ver
    2013
    Posts
    21

    Adding a condition to an array that checks a cell and then checks 5 columns before

    Hi guys

    I have a formula =SUM((IF(IFERROR(SEARCH("yes",'DIARY BCH'!2:2),0)<>0,1,0))*(IF(IFERROR(SEARCH("*mask*",'DIARY BCH'!$1:$1),0)<>0,1,0))) (array) that counts all the cells in a row that contain the text "yes" AND in the heading of the column of that cell with the "yes" contains the text "mask". This appears to be working fine (see yellow cell in attached example).

    I now need to add an additional criterion to this formula, where, in the cell that contains the text "yes" and has the column heading containing the text "mask", the formula checks five columns back on that row, to see if that cell contains the text "indoor", and then counts this.

    So, for example, patient C007 in the attached example should count 4.

    I've tried all kinds of tricks with MATCH, but can't seem to get it working.

    Any help please?

    Thank you
    Attached Files Attached Files
    Last edited by gtza; 11-21-2014 at 05:09 PM.

+ 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] Formulae Help for 2 x Dual cell checks
    By rick.parry in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-12-2013, 02:59 PM
  2. [SOLVED] Formula which checks whether a string is found in a range and checks 2 criteria
    By liranbo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-30-2012, 05:28 PM
  3. formula that checks a cell for equal or less value
    By NakedFury in forum Excel General
    Replies: 3
    Last Post: 12-05-2010, 05:56 AM
  4. if check box is marked that it also checks another cell
    By AGoldy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-09-2010, 03:49 PM
  5. Any function that checks if an inputted cell is increment of 5
    By bsengineer in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-02-2009, 02:30 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