+ Reply to Thread
Results 1 to 4 of 4

=IF Function Not Working

  1. #1
    Registered User
    Join Date
    11-07-2008
    Location
    Austin, TX
    Posts
    7

    Wink =IF Function Not Working

    Please help:

    I have a spreadsheet that has site numbers listed in the far left column, then there are 8 columns to the right. Each of the 8 columns represents a Visit # and the cell is filled in with the date, like so:

    Site # Visit 1 Visit 2 Visit 3 Visit 4
    1001 08/20/08 LATE! 10/31/08 LATE!
    1002 04/21/08 05/16/08 LATE! 07/21/08
    1003 LATE! 02/21/08 03/15/08 LATE!

    I need a formula that will look in each of the cells and if it finds a "LATE!" , it places an X in the cell, if not, it places a blank or a zero. I had the formula as:

    =if(b1:b4="LATE!","X",0)

    It keeps returning an error because it is calculating the total of all of the cells instead of looking into each cell. I tried to spell it out like:

    =if(b1,b2,b3,b4="LATE!","X",0)

    That didn't work either. HELP!

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    Try this,

    =IF(COUNTIF(A1:D1,"LATE")>=1,"X",0)

    or

    =IF(COUNTIF(A1:D1,"LATE")>=1,"X","")
    Last edited by oldchippy; 11-12-2008 at 12:08 PM. Reason: extra formula for blanks
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi,
    where exactly do you want the information ? in the last cell to the right of the row?
    If so try =if(countif(b1:b4,"late!")>0,"late!",0)

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Eagle Eye, you're mighty fast !

+ 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