+ Reply to Thread
Results 1 to 4 of 4

Leaving a cell blank until a value is entered

  1. #1
    Registered User
    Join Date
    08-13-2011
    Location
    brecon wales
    MS-Off Ver
    Excel 2003
    Posts
    20

    Leaving a cell blank until a value is entered

    Hi,

    I have a formula (below) in my league table spreadsheet that looks at a fixture list and returns the fixtures for the team that is selected in cell D1

    =INDEX(Fixtures!$B:$H,IF(ISERROR(MATCH($D$1&$A4,Fixtures!$J:$J,0)),MATCH($D$1&$A4,Fixtures!$K:$K,0),MATCH($D$1&$A4,Fixtures!$J:$J,0)),3)

    The problem is that if the score hasnt been entered yet the formula brings back a '0'.

    I would like to know what needs to be added to the formula to leave the cell blank until a score is entered on the fixture sheet

    many thanks
    Pete

  2. #2
    Registered User
    Join Date
    08-30-2011
    Location
    Oss, Holland
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Leaving a cell blank until a value is entered

    It might be possible in another way but:

    You could use conditional formatting, if the value in the cell equals 0, font color to white.

    Not fancy, but effective

  3. #3
    Registered User
    Join Date
    08-13-2011
    Location
    brecon wales
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Leaving a cell blank until a value is entered

    Ah, but if the score is 3-0 then the 0 wouldnt show

    The fixtures are for an NHL season so your idea works nicely for the OT/SO column

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Leaving a cell blank until a value is entered

    If you add a helper column that concatenates column J and K, is say column I, with a formula like: =J2&K2 , then you can apply formula like:

    =IF(INDEX(Fixtures!$B:$I,MATCH($D$1&$A4,Fixtures!$I:$I,0),3)="","",INDEX(Fixtures!$B:$I,MATCH($D$1&$A4,Fixtures!$I:$I,0),3))

    which assumes that the combination of D1&A4 will appear in column I.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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