+ Reply to Thread
Results 1 to 10 of 10

=IF(OR formula - Applying this to whole row not one cell

  1. #1
    Registered User
    Join Date
    03-01-2018
    Location
    UK
    MS-Off Ver
    10
    Posts
    5

    Exclamation =IF(OR formula - Applying this to whole row not one cell

    Hi I have a formula of =IF(OR(E7="A", E7="AS"), "Unavailable", "Available"). I want this to apply to the whole row and not just cell E7.
    Any ideas.

    available? JOB 1 JOB 2 JOB 3 JOB 4 JOB 5 JOB 6 JOB 7 JOB 8 JOB 9 JOB 10 JOB 11 JOB 12
    Person 1 Unavailable AS c
    Person 2 Available C
    Person 3 Available A
    Person 4 Available C
    Person 5 Available AS
    Person 6 Available
    Person 7 Available
    Person 8 Available

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: =IF(OR formula - Applying this to whole row not one cell

    I am not sure what you want but if the formula should apply to the entire row based on the info in column E, then hardcode it and drag it:

    =IF(OR($E7="A", $E7="AS"), "Unavailable", "Available")

  3. #3
    Registered User
    Join Date
    03-01-2018
    Location
    UK
    MS-Off Ver
    10
    Posts
    5

    Re: =IF(OR formula - Applying this to whole row not one cell

    It's not as simple as hardcoding. I want to look through the whole row and if in that row there is an A or an AS then I want the result to be 'unavailable. If there is only 'C' (for complete) or blanks then I want 'Available'

    I tried this but it didn't work:
    =IF(OR(E7:P7="A", E7:P7="AS"), "Unavailable", "Available").
    Last edited by STB10; 03-01-2018 at 06:29 AM. Reason: typo

  4. #4
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: =IF(OR formula - Applying this to whole row not one cell

    Iit would help if, rather than having another lengthy desciption, you show us what you want to see in an Excel sheet.

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).


    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Upload it.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: =IF(OR formula - Applying this to whole row not one cell

    Try this (untested):

    =IF(OR(IFNA(MATCH("A",E7:P7,0),0)>0,IFNA(MATCH("AS",E7:P7,0)>0), "Unavailable", "Available")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Registered User
    Join Date
    03-01-2018
    Location
    UK
    MS-Off Ver
    10
    Posts
    5

    Re: =IF(OR formula - Applying this to whole row not one cell

    Brill. thanks.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-01-2018
    Location
    UK
    MS-Off Ver
    10
    Posts
    5

    Re: =IF(OR formula - Applying this to whole row not one cell

    Missing some ). When rectified Error is #NAME?

    Quote Originally Posted by AliGW View Post
    Try this (untested):

    =IF(OR(IFNA(MATCH("A",E7:P7,0),0)>0,IFNA(MATCH("AS",E7:P7,0)>0), "Unavailable", "Available")

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: =IF(OR formula - Applying this to whole row not one cell

    Try this:

    =IF(OR(IFERROR(MATCH("A",E7:P7,0),0)>0,IFERROR(MATCH("AS",E7:P7,0),0)>0), "Unavailable", "Available")

  9. #9
    Registered User
    Join Date
    03-01-2018
    Location
    UK
    MS-Off Ver
    10
    Posts
    5

    Re: =IF(OR formula - Applying this to whole row not one cell

    You're an absolute star!!
    Last edited by AliGW; 03-01-2018 at 07:09 AM.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: =IF(OR formula - Applying this to whole row not one cell

    Glad to have helped!

    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. [SOLVED] applying formula if a cell contains specific text
    By ad3l3n3 in forum Excel General
    Replies: 6
    Last Post: 11-21-2016, 02:26 AM
  2. applying formula only when cell shows a date
    By nina1983 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-14-2015, 02:32 PM
  3. Applying formula and text results into one cell
    By Peter_bal in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-10-2014, 09:44 AM
  4. Applying formula in cell through VBA Problem
    By lulupatel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-08-2014, 05:47 AM
  5. [SOLVED] Applying one formula with one cell to others with '+' sign
    By mahmoodn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-12-2012, 05:35 AM
  6. Applying a simple formula for each cell in column?
    By boltoncalling in forum Excel General
    Replies: 2
    Last Post: 01-05-2012, 10:57 AM
  7. applying a formula to more than one cell or entire column
    By excelerate2007 in forum Excel General
    Replies: 4
    Last Post: 03-29-2007, 10:08 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