+ Reply to Thread
Results 1 to 2 of 2

Row Formats & IF Function

  1. #1
    Registered User
    Join Date
    01-31-2009
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    18

    Row Formats & IF Function

    Can I calculate if a person was 21 at the date of 1/1/08 or 7/1/08?

    Also, can you tell me how to convert SSN numbers that were imported from a
    database to a number format and no matter what I do by trying to format the cells it does not change. I have to go in each cell and take out the dashes but I have over 4K rows.

    I have tried right clicking and format cells, special paste and nothing.
    Attached Files Attached Files
    Last edited by Reenee; 02-04-2009 at 02:29 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Row Formats & IF Function

    find /replace - with nothing for your example sorts out the numbers part
    Then
    =IF(DATE(YEAR(D2)+21,MONTH(D2),DAY(D2))<DATE(2008,1,1),"21 OR OVER 21 ON 1/1/08","UNDER21 as of 1/1/2008")

    =IF(DATE(YEAR(D2)+21,MONTH(D2),DAY(D2))<DATE(2008,7,1),"21 OR OVER 21 ON 7/1/08","UNDER21 as of 7/1/2008")
    Last edited by martindwilson; 02-03-2009 at 09:15 PM.

+ 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