+ Reply to Thread
Results 1 to 3 of 3

IF Function Question

Hybrid View

  1. #1
    Registered User
    Join Date
    01-08-2011
    Location
    Southern California
    MS-Off Ver
    Excel 2007/Google Docs Spreadsheet
    Posts
    6

    IF Function Question

    Hello! I hope someone can help me. I am trying to set up a tournament bracket.

    I have this function in cell D16:

    =if(G7=D5,D9,if(G7=D9,D5,""))

    Until data is entered into cell G7, I do not want this function to return any value. I want this cell (D16) to be blank.

    The trouble I am having is that if D5 says "team1" but D7 and G7 are both empty at the moment, D16 will return the value "team1." I understand why this is happening, but I don't want it to happen. I want D16 blank until data is entered into G7.

    Hopefully someone can help and hopefully this makes sense.

    Thanks in advance!
    Last edited by mogabi; 01-08-2011 at 03:55 PM.

  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: IF Function Question

    Try this:

    =IF(G7="", "", IF(G7=D5, D9, IF(G7=D9, D5, "")))
    _________________
    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
    01-08-2011
    Location
    Southern California
    MS-Off Ver
    Excel 2007/Google Docs Spreadsheet
    Posts
    6

    Re: IF Function Question

    JBeaucaire, you are a saint. Thank you so much.

+ 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