+ Reply to Thread
Results 1 to 6 of 6

Combining discontinuous cell with AND function with the same criteria

  1. #1
    Registered User
    Join Date
    02-04-2018
    Location
    Mizoram, India
    MS-Off Ver
    2016
    Posts
    22

    Combining discontinuous cell with AND function with the same criteria

    A B
    1 No. of passed pupils 5
    .
    .
    20 No. of passed pupils 10
    .
    .
    30 No. of passed pupils 20

    I have formula on (say) D1 [=if(AND(b1="",b20="",b30=""),"",sum(b1,b20,b30))]

    I try to combine the "AND" part which have the same criteria (i.e. blank) like this =if(AND(b1,b20,b30)="","",sum(b1,b20,b30)) and it does not work.

    Any help....or it is not possible at all using "AND" function

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,284

    Re: Combining discontinuous cell with AND function with the same criteria

    You could try this:

    =B1&B20&B30=""
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.97 for Mac MS 365
    Posts
    8,701

    Re: Combining discontinuous cell with AND function with the same criteria

    if the first works why change it? but this could work =IF(sum(B1,B20,B30)=0,"",Sum(b1,b20,b30))
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    02-04-2018
    Location
    Mizoram, India
    MS-Off Ver
    2016
    Posts
    22

    Re: Combining discontinuous cell with AND function with the same criteria

    Thanks Ali...it works perfectly

    And Sambo, i need the outcome 0 sometimes. If there are no pupils passed, i need to display 0. I want to put blank only if b1, b20 and b30 are blank
    Thanks anyway

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

    Re: Combining discontinuous cell with AND function with the same criteria

    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.

  6. #6
    Registered User
    Join Date
    02-04-2018
    Location
    Mizoram, India
    MS-Off Ver
    2016
    Posts
    22

    Re: Combining discontinuous cell with AND function with the same criteria

    Quote Originally Posted by Sambo kid View Post
    if the first works why change it? but this could work =IF(sum(B1,B20,B30)=0,"",Sum(b1,b20,b30))
    Sambo, my original file is big, not only those three cells (b1,b20 and b30) and sometimes i need to look for same criteria other than blank, and i don't want to type the same criteria again and again...
    I could use your suggestion in some of my project. 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. Combining Text to cell when criteria meet
    By seercoven in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-06-2017, 02:38 AM
  2. Replies: 1
    Last Post: 01-20-2015, 12:47 AM
  3. [SOLVED] VBA to create a UDF to mimic a formula in another cell with an offset discontinuous range
    By Loganeb in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-23-2014, 08:48 PM
  4. Replies: 9
    Last Post: 08-20-2014, 04:43 PM
  5. Combining a CountIF Function for two Criteria
    By stevez_86 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-13-2014, 11:25 AM
  6. Discontinuous ranges
    By davemcguire in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-18-2011, 11:26 AM
  7. Discontinuous X axis
    By genscientist in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 12-06-2005, 09:50 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