+ Reply to Thread
Results 1 to 4 of 4

IF with & to each cells, better way to do?

  1. #1
    Forum Contributor
    Join Date
    05-10-2019
    Location
    Penang, Malaysia
    MS-Off Ver
    2016
    Posts
    262

    IF with & to each cells, better way to do?

    Hi All,

    Reason why i need to use this function is to make total blank if all the selected cells are blank instead of 0 value, imagine if i have >20 cells to be selected, its very manual process, is there better way to do?

    I have made a sample to the attachment

    eg:
    Please Login or Register  to view this content.

    Thank-You very much!
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,739

    Re: IF with & to each cells, better way to do?

    You could do it like this:

    =IF(COUNTIF(D4:H4,"")=5,"",SUM(D4:H4))

    then copy down.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    05-10-2019
    Location
    Penang, Malaysia
    MS-Off Ver
    2016
    Posts
    262

    Re: IF with & to each cells, better way to do?

    Hi Pete

    Yes, it helps. will mark this thread closed & add reputation to you

    Thank-You very much!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,739

    Re: IF with & to each cells, better way to do?

    Glad to help - thanks for the rep.

    Pete

+ 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] Count the cells in a string of cells omitting zeros and specific cells
    By Hawkmoth1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-23-2017, 08:39 AM
  2. Replies: 4
    Last Post: 02-11-2015, 09:02 AM
  3. Replies: 0
    Last Post: 01-21-2015, 12:05 PM
  4. [SOLVED] Linking cells globally to allow users the ability to change cells on separate sheet/cells.
    By V1gilante in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2014, 10:47 PM
  5. Replies: 4
    Last Post: 06-17-2011, 08:53 AM
  6. Formula: Drop Down List -> Choose Option Finds Cells & Replace Cells with Cells
    By g00glethis1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2010, 01:10 PM
  7. Replies: 2
    Last Post: 06-24-2010, 04:53 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