+ Reply to Thread
Results 1 to 5 of 5

Add +44 IF first Number in the string is 7

  1. #1
    Registered User
    Join Date
    08-13-2014
    Location
    London
    MS-Off Ver
    2011 (365) Mac
    Posts
    5

    Add +44 IF first Number in the string is 7

    Hi Guys,

    Sorry I can't offer a formula, to demonstrate that i have at least tried... I know some people get annoyed if us noobs just walk in and ask for formulae, but I am not an excel user ordinarily and wouldn't know where to start...so apologies.

    I'm looking for something that might be able to save me a few hours. Essentially as it says in the title, a formula that I can apply that will add "+44" IF and only If the first number in the string is a 7.

    I managed to remove all of the 0's from the front of the numbers which helps, because I can now more easily identify the UK numbers which tend to start with a 7. I'll have some stragglers but this will fix a few thousand at least.

    I hope you can help.

    Yours Hopefully
    LondonSmudge

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,329

    Re: Add +44 IF first Number in the string is 7

    =if(left(a1;1)=7;44&....
    Something like this???
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Add +44 IF first Number in the string is 7

    Let's go to the land of imagination.

    In Imagination Land you have a spreadsheet where A1 = "7ilovefatunicorns" and B1 = 56.

    Well, in C1 I put: =IF(left(a1)=7,B1+44,B1)

    The result in C1 is 100.

    Now when I copy the formula down into C2, it adjusts its references and points to A2 and B2 instead.

    A2 = "99luftballoons" and B2 = 5. The character is not a 7. C2 = 5.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  4. #4
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Add +44 IF first Number in the string is 7

    A1 = number string you're looking at

    Please Login or Register  to view this content.
    IF the first character from the left in cell A1 is a "7", then a "+44" will get slapped on the front.

    That can pull down.

  5. #5
    Registered User
    Join Date
    08-13-2014
    Location
    London
    MS-Off Ver
    2011 (365) Mac
    Posts
    5

    Re: Add +44 IF first Number in the string is 7

    Quote Originally Posted by ben_hensel View Post
    A1 = number string you're looking at

    Please Login or Register  to view this content.
    IF the first character from the left in cell A1 is a "7", then a "+44" will get slapped on the front.

    That can pull down.
    That can pull down.

    You Sir, Are a gentleman and a scholar. Appropriate reputation etc added.

    Thanks Dude
    S
    Last edited by LondonSmudge; 09-24-2014 at 08:25 AM. Reason: missed quote

+ 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. Generating random number string based on Alphanumeric String
    By ridemeve in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-15-2014, 04:56 PM
  2. Replies: 12
    Last Post: 03-20-2013, 05:46 PM
  3. [SOLVED] How to Extract A Number from String if Text within the String Equals XYZ
    By tyrsfury in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-15-2012, 03:30 PM
  4. [SOLVED] Extract a mainly numeric string (ISSN number) from an arbitrary string
    By Buzzed Aldrin in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 07-04-2012, 01:49 PM
  5. Replies: 1
    Last Post: 01-25-2010, 12:48 PM

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