+ Reply to Thread
Results 1 to 10 of 10

Text identification then declaring result else other formula to run

  1. #1
    Registered User
    Join Date
    07-06-2016
    Location
    Bangalore, India
    MS-Off Ver
    2016
    Posts
    26

    Text identification then declaring result else other formula to run

    Hi,

    I have list of article name for which i want to run a formula.

    1. Article Name: A1 = Philips QP2525/10 Cordless OneBlade Hybrid Trimmer

    Formula: LEFT(" A1",(FIND(" ","A1",1)-1))
    Result: Philips

    2. Article Name: A2 = QP2525/10 Cordless OneBlade Hybrid Trimmer

    Formula : IF(ISNUMBER(FIND("QP2525/10",A2)),"Philips")

    What formula i can write so for both the Cell A1 & A2 same formula can produce correct result.
    Last edited by Sid_2987; 01-22-2022 at 03:15 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Text identification then declaring result else other formula to run

    If you mean you want to change the actual text entry in 1 of the cells, you cannot do that with formulas, you will need VBA (code) to do that.

    A cell can either contain an entry OR a formula, not both. Formulas only affect the cell they reside in.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    07-06-2016
    Location
    Bangalore, India
    MS-Off Ver
    2016
    Posts
    26

    Re: Text identification then declaring result else other formula to run

    Can we use OR function or AND function to concatenate the formula

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,899

    Re: Text identification then declaring result else other formula to run

    The original data and the result MUST be in different cells for a formula to work.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    07-06-2016
    Location
    Bangalore, India
    MS-Off Ver
    2016
    Posts
    26

    Re: Text identification then declaring result else other formula to run

    Result I want in B1, B2 cell to appear. Any suggestion?

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft? Excel? for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,005

    Re: Text identification then declaring result else other formula to run

    B1

    =LEFT(" A1",(FIND(" ","A1",1)-1))

    This in B2 ??

    =IF(ISNUMBER(FIND(A2,A1)),B1,"")

    or

    =IF(ISNUMBER(FIND(A2,A1)),LEFT( A1,(FIND(" ",A1,1)-1)),"")
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,899

    Re: Text identification then declaring result else other formula to run

    I think you're not providing us with enough information (maybe... perhaps....)

    this seems to be what you are describing.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    07-06-2016
    Location
    Bangalore, India
    MS-Off Ver
    2016
    Posts
    26

    Re: Text identification then declaring result else other formula to run

    Can we combine formula for both the cell A1 & A2 at B1.

    Attached is the sample.
    Attached Files Attached Files

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,401

    Re: Text identification then declaring result else other formula to run

    There is nothing in cells A1 and A2 in the file attached ...
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,899

    Re: Text identification then declaring result else other formula to run

    At LAST... a sample that we can use:

    =IFERROR(IF(OR(LEFT(D2,(FIND(" ",D2,1)-1))="Jiophone",ISNUMBER(FIND("LS1542QWN",D2))),"Jiophone",""),"")
    Attached Files Attached Files

+ 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] Formula to Return Text Result Based On Text Contained in Cell
    By ShawnaLynn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-10-2021, 12:40 PM
  2. Help with this text identification formula
    By AverageMort in forum Excel General
    Replies: 9
    Last Post: 12-08-2020, 06:56 AM
  3. [SOLVED] Multiple Find and Replace Formula For Identification
    By brenonJensen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-30-2019, 12:18 PM
  4. [SOLVED] produce text result instead of #NUM! result in array formula
    By Stuartzz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-29-2018, 08:17 PM
  5. Convert a formula result to text so another formula can find that result
    By rwoollams in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-12-2014, 01:49 AM
  6. Replies: 6
    Last Post: 06-08-2012, 06:54 PM
  7. Converting the text result of a formula to fixed text?
    By KarenInStockholm in forum Excel General
    Replies: 3
    Last Post: 12-08-2011, 08:42 AM

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