+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : custom IF statement

  1. #1
    Registered User
    Join Date
    09-29-2010
    Location
    Redding, CA
    MS-Off Ver
    Excel 2008
    Posts
    8

    Question custom IF statement

    I'm not sure if this would be a macro script because it involves moving values and autopopulating... Here's a scenario

    IF Col 6 'contains a P' move entire value of field (i.e. 1234P) to Column 77, AND populate Column 108 with the letter P

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: custom IF statement

    Why move it, why not just reference

    =IF(ISNUMBER(SEARCH("p",F2)),F2,"")

    and

    =IF(ISNUMBER(SEARCH("p",F2)),"P","")

  3. #3
    Registered User
    Join Date
    09-29-2010
    Location
    Redding, CA
    MS-Off Ver
    Excel 2008
    Posts
    8

    Re: custom IF statement

    we're doing a data migration, the new system only accepts # values...

    Column 6 = SSN

    Some of our 'client's are foster children. they have what's called 'pseudo' SSN's... a unique #, but 9th character is a letter P.... therefore, column 6 would have to be cleared out... I have about 40,000 records... and about 8-12% have pseudo #'s.

  4. #4
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: custom IF statement

    the following macro should do what you are looking for it is assuming that there is data in column A to determin max rows.

    Please Login or Register  to view this content.

+ 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