+ Reply to Thread
Results 1 to 4 of 4

adding empty cell only if nothing else is entered in referring cells

  1. #1
    Registered User
    Join Date
    05-07-2010
    Location
    Narberth, Wales
    MS-Off Ver
    Excel 2003
    Posts
    9

    adding empty cell only if nothing else is entered in referring cells

    Hi

    I need to enter an empty "total" cell (text) in a "total" tab if the other cells are empty, otherwise enter a dash "==="

    refer to cell D29, D30 & D31 on the attached

    I know this formula is incorrect but hopefully it gives you the gist of what I'm trying to do

    =IF((Monday!I30)and(Tuesday!I30)and(Wednesday!I30)and(Thursday!I30)and(Friday!I30)="","","=====")

    many thanks in anticipation
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: adding empty cell only if nothing else is entered in referring cells

    In D24, the corrected formula could be:

    =IF(SUM(Monday:Friday!I24)=0, "", SUM(Monday:Friday!I24))

    In D30:

    =IF(SUM(Monday:Friday!I30)=0, "", "=====")


    This 3D sum technique will require that you correct the cell fomatting, the Monday sheet cell I30 was formatted as text, so it didn't work until I got an actual number into that cell. Play around with it.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    05-07-2010
    Location
    Narberth, Wales
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: adding empty cell only if nothing else is entered in referring cells

    hi
    thanks for the tip on D24 etc
    unfortunately, D30 isn't coming out as i hoped - the "=====" isn't appearing in the total sheet where there is an actual figure in the monday sheet. what I'm doing is ignoring that time code in the total sheet ie not adding it up, but do want it to show that there has been data entered against it, but empty if there is no data
    thanks again

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: adding empty cell only if nothing else is entered in referring cells

    Quote Originally Posted by ioneabee View Post
    what I'm doing is ignoring that time code in the total sheet ie not adding it up, but do want it to show that there has been data entered against it, but empty if there is no data
    That's what my formula does as far as I can tell.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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