+ Reply to Thread
Results 1 to 13 of 13

Changing Status based on text

  1. #1
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Changing Status based on text

    Hi,
    I need a macro which will based on collection names automatically put New or Add Option in Column B from Column A:

    1. For Any same name collection name if any of the collection name say -Live in the end it should populate add option in column B
    2. If none of the collection names say -Live it should populate New Item.

    Please see attached for sample sheet, There are 2 collection names one is Fred and one is Solenne
    Fred should say Add Option since -Live in the end of some have -Live
    Solenne should say New Item since none ending with -Live exist.

    Appreciate it!
    Attached Files Attached Files

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Changing Status based on text

    Fredbugatti,

    In the sample sheet Solenne also does say -Live from what I see? But I do see many other names don't have Live in them. One follow up question... Lets say there are 10 Fred listings, and half say Live, and the others not, do ALL Fred listings get "Add Option" in col B?
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Registered User
    Join Date
    09-16-2017
    Location
    Agra
    MS-Off Ver
    2013
    Posts
    72

    Re: Changing Status based on text

    Dear,

    "Solenne should say New Item since none ending with -Live exist." Please reconfirm your statement. If I understand you correctly , the statement seems to be typo. There are many records of Solenne which end with "Live"
    Fred-Live
    Fred-Live
    Fred-Live
    Fred-Live
    Fred-Live
    Fred-Live
    Fred-Live
    Fred-Live
    Fred-Live
    Fred-Live
    Solenne-Live
    Solenne-Live
    Solenne-Live
    Solenne-Live
    Solenne-Live
    Solenne-Live
    Solenne-Live

  4. #4
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: Changing Status based on text

    I am sorry for the error, Its the opposite Fred should be add option and solenne should be Live. Good catch!

  5. #5
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: Changing Status based on text

    *And Solenne should be New Item

  6. #6
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: Changing Status based on text

    Hi Arkadi,
    Yes, If at least 1 of the same collection name says Live then they are all Add Options, If Non say Live then its a New Item.

  7. #7
    Registered User
    Join Date
    07-18-2018
    Location
    Bella, Kafr El Sheikh, Egypt
    MS-Off Ver
    16.0
    Posts
    6

    Re: Changing Status based on text

    according to my understanding ,Try the following code
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: Changing Status based on text

    Hi Eslam,
    Why is it showing live on some options and Waldorf should be Add Option since there is already live ones there.

    There only needs to be 2 options NEW ITEM OR LIVE.

    See screenshot: https://www.screencast.com/t/sSWaBJ8ti76

  9. #9
    Registered User
    Join Date
    07-18-2018
    Location
    Bella, Kafr El Sheikh, Egypt
    MS-Off Ver
    16.0
    Posts
    6

    Re: Changing Status based on text

    try this code
    Please Login or Register  to view this content.
    But for "Waldorf" one of them is not next to anything
    So "New Item" was written

  10. #10
    Registered User
    Join Date
    07-18-2018
    Location
    Bella, Kafr El Sheikh, Egypt
    MS-Off Ver
    16.0
    Posts
    6

    Re: Changing Status based on text

    If you want to write live if you found it at least once , try this code
    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: Changing Status based on text

    Hi Eslam,
    Why is it copying the same item name near it? It should only say Live or New Item.
    For Collection Names that show none as Live it should say NEW ITEM and for collection names that have at least 1 -Live in end should say add option.

  12. #12
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,268

    Re: Changing Status based on text

    Maybe this
    Please Login or Register  to view this content.
    "ThankyouFor Attention * And Your Help!!"

  13. #13
    Forum Contributor
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2017
    Posts
    300

    Re: Changing Status based on text

    This is showing Fred as a new item when it should show as Add Option https://www.screencast.com/t/bhtek4G28lLC

+ 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. [SOLVED] CheckBoxes unselect certain not changing status
    By Konexcelmath in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 08-27-2015, 07:15 AM
  2. Replies: 3
    Last Post: 09-11-2014, 04:32 PM
  3. Function to return status text based on dates
    By jscalem in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-24-2014, 04:48 PM
  4. Changing Text Box background based on other cell text
    By Zonc in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-15-2014, 04:45 AM
  5. Replies: 1
    Last Post: 02-19-2014, 10:04 PM
  6. Macro for changing Order Status
    By Eduar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-17-2012, 02:09 PM
  7. Replies: 4
    Last Post: 04-08-2012, 09:43 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