Results 1 to 5 of 5

Creating a macro: If Cell A1 contains x then add x to the end of a string of text.

Threaded View

Coolcatfish Creating a macro: If Cell A1... 02-27-2012, 09:54 AM
arlu1201 Re: Creating a macro: If Cell... 02-27-2012, 10:02 AM
Richard Buttrey Re: Creating a macro: If Cell... 02-27-2012, 10:07 AM
Coolcatfish Re: Creating a macro: If Cell... 02-27-2012, 10:36 AM
Richard Buttrey Re: Creating a macro: If Cell... 02-27-2012, 11:15 AM
  1. #1
    Registered User
    Join Date
    02-27-2012
    Location
    Dorset, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question Creating a macro: If Cell A1 contains x then add x to the end of a string of text.

    Hi all,

    I'm not confident by title describes my problem very well but what I'm trying to do is the following:

    My spreadsheet is used to track cars and every month I add new cars to it. At the moment I can download the details of said cars which I break into separate cells using text to columns.

    The car model is displayed as a string of text and the transmission is recorded in a different cell as M(anual) or A(utomatic). What I'd like a macro to do, it check each row to see firstly if the car is an Automatic, if it is, then I'd like it to add the text AUTO to the end of the existing model description. If it's Manual then I'd like it to do nothing.

    Also (as if this wasn't tricky enough) in SOME circumstances the model of the car might already have the text AUTO in it. In these cases (if possible) I'd like the macro to skip and not add the text in again.

    Hopefully that explains things enough but if not then please ask me anything else which will help.

    Many many thanks for any and all help I receive.
    Last edited by Coolcatfish; 02-27-2012 at 10:38 AM.

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