+ Reply to Thread
Results 1 to 6 of 6

IF Formula Leaving As-Is

  1. #1
    Registered User
    Join Date
    07-08-2008
    Location
    New Jersey
    Posts
    52

    IF Formula Leaving As-Is

    Hey guys, just a quick question about the IF Formula:

    I'm still new so bare with me.

    What code do I write to make the formula leave the current information "As-is" in the cell?

    For example: Say I had a cell with a number in it. I run that IF formula to check if it is a specific number or not. If it is, it changes it. If it isn't, it keeps the existing number in the cell the same.

    What do I write at the end of the IF formula to keep it unchanged?

    Any suggestions would be extremely helpful.

    Thanks,
    Pete

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    =IF(A1=1,"Changes",A1)
    This example returns the word Changes if Cell A1 equals 1 otherwise it will return Cell A1 value

    HTH

    VBA Noob
    Last edited by VBA Noob; 07-08-2008 at 11:42 AM.
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    07-08-2008
    Location
    New Jersey
    Posts
    52
    Ah thats perfect, thanks!

  4. #4
    Registered User
    Join Date
    07-08-2008
    Location
    New Jersey
    Posts
    52
    Is there any generic code I can insert instead of a specific cell (A1)??

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Is there any generic code I can insert instead of a specific cell
    Sorry don't understand the question.

    VBA Noob

  6. #6
    Registered User
    Join Date
    07-08-2008
    Location
    New Jersey
    Posts
    52
    I think I figured out my own mess of a question. Hehe thanks for the help!

+ 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