+ Reply to Thread
Results 1 to 6 of 6

Assistance with IF formula

  1. #1
    Registered User
    Join Date
    08-26-2014
    Location
    Atlanta, GA
    MS-Off Ver
    2011
    Posts
    3

    Assistance with IF formula

    Feel like I'm almost there, but seeking assistance. In one column I have 10 digit numbers, in another column, if the 10 digit number starts with 404, I want to strip the first 5 digits and return the 5 digit number; however, if the 10 digit number starts with 478, I want to strip the first 6 digits and return the 4 digit number. Below is what I have currently, please provide feedback on what I'm missing. The formula works for numbers beginning with 404; however, just returns FALSE for numbers beginning with 478.

    =IF(ISNUMBER(SEARCH("404*",AA12)),(RIGHT(AA12,LEN(AA12)-5)),IF(ISNUMBER(SEARCH("478*",AA12)),(RIGHT(AA12,LEN(AA12)-6))))

  2. #2
    Forum Contributor
    Join Date
    07-29-2014
    Location
    Oz
    MS-Off Ver
    2010
    Posts
    142

    Re: Assistance with IF formula

    Try:
    =IF(LEFT(AA12,3)="404",RIGHT(AA12,5),IF(LEFT(AA12,3)="478",RIGHT(AA12,4),"No Match"))
    Don't forget to ☆ me if I helped you!

  3. #3
    Registered User
    Join Date
    08-26-2014
    Location
    Atlanta, GA
    MS-Off Ver
    2011
    Posts
    3

    Re: Assistance with IF formula

    Thank you so much for the assistance, unfortunately not quite what I'm looking for. Perhaps this will help. If cell AA12 contains 4045551212 or 4785551212, I need to populate the current cell with either 51212 (if it starts with 404) or just 1212 (if it starts with 478).

    Thanks again!

  4. #4
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Assistance with IF formula

    That's what Danerida's formula does - at least it did when I tested it.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  5. #5
    Registered User
    Join Date
    08-26-2014
    Location
    Atlanta, GA
    MS-Off Ver
    2011
    Posts
    3

    Re: Assistance with IF formula

    I went back and formatted as numbers and tried again, works perfectly. Thank you both so much!!!!!!

  6. #6
    Forum Contributor
    Join Date
    07-29-2014
    Location
    Oz
    MS-Off Ver
    2010
    Posts
    142

    Re: Assistance with IF formula

    Glad to help
    Last edited by Danerida; 08-26-2014 at 08:06 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Assistance with formula
    By hcubed in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-22-2014, 07:47 PM
  2. Assistance with formula
    By Telehouse in forum Excel General
    Replies: 1
    Last Post: 05-04-2009, 01:04 PM
  3. Formula Assistance
    By Dawn V in forum Excel General
    Replies: 5
    Last Post: 04-10-2008, 03:41 PM
  4. [SOLVED] Assistance with Formula
    By Joe D. in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-11-2006, 12:10 AM
  5. Formula Assistance
    By Chris Cred via OfficeKB.com in forum Excel General
    Replies: 7
    Last Post: 01-20-2006, 12:30 AM

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