+ Reply to Thread
Results 1 to 6 of 6

If specific columns have value then put Yes

  1. #1
    Registered User
    Join Date
    10-24-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2013
    Posts
    87

    If specific columns have value then put Yes

    This might be a basic question but I am wondering if there is a formula or macro that can help me out.

    This is what I am looking for:

    If certain specific cells contain values, then another cell will put a "yes" in it.

    Ie.) If Cells A1, B1, C1, D1 have a value in it then cell E1 should say "yes". If one of these cells is blank then E1 should either be blank or say "no".

    Currently the formula I have is:

    =IF(ISBLANK(A1), IF(ISBLANK(B1), IF(ISBLANK(C1),IF(ISBLANK(D1), "",D1,C1),B1),A1)
    (This doesn't work as the error "You’ve entered too many arguments for this function"

    =IF(ISBLANK(A1), IF(ISBLANK(B1), IF(ISBLANK(C1), "",C1),B1),A1)
    (This formula does work though as it has less arguments)


    Please let me know if this is possible. Thank you in advance for your help
    Last edited by foxy_420; 08-14-2014 at 03:09 PM.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,952

    Re: If specific columns have value then put Yes

    =IF(COUNTA(A1:D1)<4,"No","Yes")

    This may not be suitable if the contents of cells A1:D1 are created via formulas.

  3. #3
    Registered User
    Join Date
    10-24-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2013
    Posts
    87

    Re: If specific columns have value then put Yes

    Thank you very much. What if hypothetically the cells are NOT in succession. Could the Same formula apply?

    ie.) A1, B1, D1, E1, J1 have values, then K1 = yes

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,952

    Re: If specific columns have value then put Yes

    =IF(COUNTA(A1,B1,D1,E1,J1)<5,"No","Yes")

  5. #5
    Registered User
    Join Date
    10-24-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2013
    Posts
    87

    Re: If specific columns have value then put Yes

    Thank you very much. This is exactly what I was hoping for. I will add to your reputation and mark this as solved.

    Thanks again

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,952

    Re: If specific columns have value then put Yes

    Glad to help. Thanks for the rep

    BSB.

+ 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] Copy specific columns to specific columns in another worksheet
    By mahat in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2014, 11:24 AM
  2. Programming to automatically send text to specific sheets and specific columns.
    By GlobalExcelller in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-21-2014, 10:07 PM
  3. Replies: 8
    Last Post: 04-04-2013, 08:02 PM
  4. Hide specific columns dependant on number in specific cell
    By ladbroke in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-13-2012, 04:46 PM
  5. Macro to copy specific data to specific columns from a pivot table
    By Raju Radhakrishnan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2012, 07:24 PM

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