+ Reply to Thread
Results 1 to 10 of 10

Search for two texts and return two times another cell if present and return 1 times

  1. #1
    Registered User
    Join Date
    04-29-2020
    Location
    melbourne
    MS-Off Ver
    2020
    Posts
    4

    Search for two texts and return two times another cell if present and return 1 times

    Hi if anyone can help me on this, thanks a lot.

    All I want is search for two texts and return two times another cell if present and return 1 times.

    See my attached screenshot of formula. It says an error, though I am able to search for one text.
    Attached Images Attached Images

  2. #2
    Registered User
    Join Date
    04-29-2020
    Location
    melbourne
    MS-Off Ver
    2020
    Posts
    4

    Re: Search for two texts and return two times another cell if present and return 1 times

    All I am doing is search for "DGPO" or "Double" in B column and return two times the quantity if those texts are present. If not one times. But it says error after I insert or into the formula. Since the search for one text search works fine for me.

  3. #3
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Search for two texts and return two times another cell if present and return 1 times

    Hi there Josy - welcome to the forum.

    For future reference, it is a lot easier if you attach a workbook rather than an image (per the yellow box at the top of the screen).

    Having said that, and assuming that "Double" is at the beginning of the "Fixture", you could try:
    =IF(OR(B71="GDPO",LEFT(B71,6)="Double"),C71*2,C71)

    I hope this helps, please let me know!

    Regards,

    David

    If this has been helpful
    - Please click on the *Add Reputation button at the bottom left.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  4. #4
    Registered User
    Join Date
    04-29-2020
    Location
    melbourne
    MS-Off Ver
    2020
    Posts
    4

    Re: Search for two texts and return two times another cell if present and return 1 times

    No this does not solve the problem.

  5. #5
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Search for two texts and return two times another cell if present and return 1 times

    Sorry, I mistyped the GDPO - it should have been DGPO.

  6. #6
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Search for two texts and return two times another cell if present and return 1 times

    Please attach a workbook - it will be easier to if I can test the formula and send it back.

  7. #7
    Registered User
    Join Date
    04-29-2020
    Location
    melbourne
    MS-Off Ver
    2020
    Posts
    4

    Re: Search for two texts and return two times another cell if present and return 1 times

    It does not multiply by 2.

  8. #8
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Search for two texts and return two times another cell if present and return 1 times

    I see the problem - your data does not begin with the text you are looking for.

    This is the problem of trying to work from a picture rather than a workbook.

    I'll have to look at it tomorrow I'm sorry - I have to shut down now.

  9. #9
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Search for two texts and return two times another cell if present and return 1 times

    Good morning josygeorge000

    Please try this
    =IF(SUMPRODUCT(--ISNUMBER(SEARCH({"DGPO","Double"},B71))),C71*2,C71)

    I hope this helps, please let me know!

    Regards,

    David

    If this has been helpful
    - Please click on the *Add Reputation button at the bottom left.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  10. #10
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Search for two texts and return two times another cell if present and return 1 times

    Thanks for the Rep and acknowledgement of success.


    Regards,

    David
    Last edited by David A Coop; 05-03-2020 at 03:22 AM.

+ 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. return X times value entered in cell
    By skipro in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-31-2018, 06:25 PM
  2. Replies: 3
    Last Post: 11-11-2017, 04:45 PM
  3. Search for multiple texts in cell, return specific text
    By mariur89 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 11-24-2014, 06:43 PM
  4. Less then, return zero, equal or higher return value times 2 plus 50
    By Simale in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-25-2014, 09:42 AM
  5. If a search term can be found 1 time, 2 times 3 times 4 times 5 times
    By excelcandy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2013, 09:57 PM
  6. Replies: 4
    Last Post: 07-11-2012, 12:36 PM
  7. [SOLVED] Search Range and Return # of times a Text String occurs
    By Schwartz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-02-2012, 04:23 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