+ Reply to Thread
Results 1 to 5 of 5

IF Function which looks at more than one cell

  1. #1
    Registered User
    Join Date
    02-29-2012
    Location
    Ireland
    MS-Off Ver
    Excel 2016
    Posts
    68

    IF Function which looks at more than one cell

    Hi All

    I am trying to write a formula in Cell B2 that looks at 3 Cells (A1,A2,A3) and if any of the 3 cells are populate with text or number returns "Yes" and if all 3 are blank it returns "No".

    Thanks for looking

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: IF Function which looks at more than one cell

    Try:

    =IF(AND(A1="",A2="",A3=""),"No","Yes")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    02-29-2012
    Location
    Ireland
    MS-Off Ver
    Excel 2016
    Posts
    68

    Re: IF Function which looks at more than one cell

    Perfect - thank you so much Glenn

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: IF Function which looks at more than one cell

    You're welcome!! Nice to see someone else from Ireland on here.... There aren't too many of us here!!

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: IF Function which looks at more than one cell

    Here's another one...

    =IF(COUNTA(A1:A3),"Yes","No")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Replies: 1
    Last Post: 06-02-2015, 01:38 AM
  2. index function error using match function to get data from a cell in an array
    By mabildgaard in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-17-2013, 02:21 AM
  3. if cell is wrapped with IFERROR function, then delete the function from the cell
    By Shishek in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-20-2012, 07:21 PM
  4. Combine time cell and function cell with new function
    By murdoc158 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-17-2012, 09:37 AM
  5. Replies: 3
    Last Post: 10-27-2010, 03:11 AM
  6. Replies: 2
    Last Post: 03-20-2009, 01:29 PM
  7. [SOLVED] A correct IF function doesn't show the function's result in cell
    By Michael in forum Excel General
    Replies: 1
    Last Post: 04-10-2006, 04:15 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