+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    03-20-2010
    Location
    Snellville, Georgia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Exclamation When Value is present change phrase

    ok so this is kind of a wierd question.. im going to be ebaying about 500 items over the next 5-6 months.. and i want to make a simple Spreadsheet that i can use to track what was listed and what wasnt.. and what was sold..

    I have made a spread sheet.. and here is what i want to do

    CODE STATUS ITEM COST S&H

    X SOLD XXXXX XXXX XXX

    So when i put X into CODE it says SOLD.. but when CODE is Empty i want it to say AVAILABLE If i put L in i want it to say LISTED..

    I havent been able to find a proper IF statement for that.. lol Someone please let me know how i can make it work. .

  2. #2
    Forums Administrator royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    24,446

    Re: When Value is present change phrase

    Try

    =IF(A1="X","Sold",IF(A1="L","Listed",""))
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel consulting, free examples and tutorials visit Excel Consulting-Excel VBA
    Check out the free Excel Toolbar

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)


    Code Tags: Make your code easier for us to read

  3. #3
    Registered User
    Join Date
    03-20-2010
    Location
    Snellville, Georgia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: When Value is present change phrase

    Worked great. how do i make it say "AVAILABLE" when there is no value present.. or i guess i could just add a third value to that.
    IF =IF(A1="X","Sold",IF(A1="L","Listed","")) change to
    =IF(A1="X","Sold",IF(A1="L","Listed",IF(A1="A","Available"""))
    Although that argument does not work..
    BTW.. thanks for that awesome quick response.. lol this just became my new favorite forum. lol

  4. #4
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,477

    Re: When Value is present change phrase

    =IF(A1="X","Sold",IF(A1="L","Listed",IF(A1="A","Available","")))
    Last edited by martindwilson; 03-20-2010 at 03:56 PM.
    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    03-20-2010
    Location
    Snellville, Georgia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: When Value is present change phrase

    got it, the actual code was =IF(A2="X","Sold",IF(A2="L","Listed",IF(A2="A","Available,")))

    Forgot to remove the last " . thanks for the quick response.. you guys are awesome.

    btw any idea on how to add COLOR FILL As well

    LIKE GREEN YELLOW AND RED..
    Last edited by Edink1968; 03-20-2010 at 04:16 PM.

  6. #6
    Forums Administrator royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    24,446

    Re: When Value is present change phrase

    You can change colours using ConditionalFormatting,see

    http://excel-it.com/excel_conditional_formatting.htm
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel consulting, free examples and tutorials visit Excel Consulting-Excel VBA
    Check out the free Excel Toolbar

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)


    Code Tags: Make your code easier for us to read

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.2.0