+ Reply to Thread
Results 1 to 7 of 7

If last word is SALE write SALE otherwise blank

  1. #1
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    If last word is SALE write SALE otherwise blank

    Say i have as follows on a1 and a2 and a3

    OKAY = GEMMA SALE
    OKAY = NIRO SALE
    OKAY = PROJECT

    I am checking discounts given of each sales around
    100 rows m I want to comment on an b1 which of
    these entries were SALE related

    The expected result on B1 and drag down should be

    SALE
    SALE
    BLANK CELL

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: If last word is SALE write SALE otherwise blank

    =IFERROR(IF(SEARCH("Sale",A1),"SALE"),"")

    Row\Col
    A
    B
    1
    OKAY = GEMMA SALE SALE
    2
    OKAY = NIRO SALE SALE
    3
    OKAY = PROJECT
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Valued Forum Contributor
    Join Date
    08-04-2011
    Location
    UK
    MS-Off Ver
    Excel 2021
    Posts
    346

    Re: If last word is SALE write SALE otherwise blank

    you can do a wildcard search for SALE like

    =SEARCH("*SALE",A1)

    and use iferror to tidy it up

    =IFERROR(SEARCH("*SALE",A1),"")

  4. #4
    Registered User
    Join Date
    12-03-2014
    Location
    London, England
    MS-Off Ver
    Professional 2010
    Posts
    7

    Re: If last word is SALE write SALE otherwise blank

    =IF(RIGHT(A1,4)="sale","SALE","")

  5. #5
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: If last word is SALE write SALE otherwise blank

    Thank you ALKEY and AlanY

    Works , have long data , will be handy

  6. #6
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: If last word is SALE write SALE otherwise blank

    Krishpraj yours kicks away the iferror , small formula and sweet

    Thank you

  7. #7
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: If last word is SALE write SALE otherwise blank

    It will work as I am not looking for SALE any where but as the last word ,
    I will collect the other two if the SALE comment is necessarily not last

+ 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] define exact number of products sale from multiple sale and returned sale orders
    By maabadi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2012, 06:14 AM
  2. Calc Final Sale Price Including % of Sale?
    By kierenschneider in forum Excel General
    Replies: 1
    Last Post: 10-26-2009, 01:09 PM
  3. Replies: 1
    Last Post: 01-30-2006, 05:10 PM
  4. [SOLVED] skus in columm a for each sale, qty. of skus sold, each sale in co-Need to sort
    By confused1 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  5. [SOLVED] skus in columm a for each sale, qty. of skus sold, each sale in co
    By confused1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-11-2005, 05:05 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