+ Reply to Thread
Results 1 to 14 of 14

How to combine FINDing CHAR(42) and CHAR(47) in 1 formula

  1. #1
    Registered User
    Join Date
    12-11-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel Pro Plus 2019
    Posts
    67

    How to combine FINDing CHAR(42) and CHAR(47) in 1 formula

    Hello,

    Is it possible to combine two FIND functions in the same cell? Seems only one works, when you add the 2nd one it gives you an error.

    Formula in Column R
    =IF(AND(ISERR(FIND(CHAR(42),A2,B2)),ISERR(FIND(CHAR(47),A2,B2))),"",
    IF(FIND(CHAR(42),A2,B2),MID(A2,B2+1,FIND(CHAR(42),A2,B2)-B2-1),
    IF(FIND(CHAR(47),A2,B2),MID(A2,B2+1,LEN(A2)-FIND(CHAR(47),A2,B2)-2))))

    A2: Description
    B2: Position of Last Space character
    Char(42): *
    Char(47): /

    Description
    CocoNara Coconut Chocolate 24*60Pcs
    Coco Nara Coconut Chocolate 18/96Pcs
    Coco Nara Aya Coconut Chocolate 18/96Pcs
    Mighty Mouse Blue Berry Chocolate 12*50gr
    Mighty Mouse Blue Berry/Mint Chocolate 10*50gr
    Mighty Mouse Grape/Cream Chocolate 10/50gr
    Mighty Mouse Grape/Cream Chocolate 1000gr
    Mork Strawberry Cream Chocolate 24/10*10

    Since I am FINDing asterisk first Row 1, Row 4, Row 5 & Row 6 give correct results, but not others since they have a slash and we are looking for a slash in same formula

    Any help would be very much appreciated. If you need a sample file, I will be glad to upload it.

    Warmest regards,
    RJ

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: How to combine FINDing CHAR(42) and CHAR(47) in 1 formula

    It would be good if you could attach the file with an example
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to combine FINDing CHAR(42) and CHAR(47) in 1 formula

    Hi,

    What's the aim here.

    Is it
    1. Strip out the Description only (i.e. ignoring the quantity)
    2. Strip out the quantity, e.g. 24*60Pcs
    3. Find the position of either the "*" or "/" character
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  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
    44,135

    Re: How to combine FINDing CHAR(42) and CHAR(47) in 1 formula

    What do you want to get as the results?
    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

  5. #5
    Registered User
    Join Date
    12-11-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel Pro Plus 2019
    Posts
    67

    Re: How to combine FINDing CHAR(42) and CHAR(47) in 1 formula

    I thought I did attach the worksheet, but .....

    So here it is. Sorry for the confusion.

    I am trying to extract the size and the case packing.

    again thank you for your help.
    Attached Files Attached Files

  6. #6
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: How to combine FINDing CHAR(42) and CHAR(47) in 1 formula

    Check attached this would work for most of the cases.
    The size would be extracted if it is not more than 3 digits.
    Hope this helps!!
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-11-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel Pro Plus 2019
    Posts
    67

    Re: How to combine FINDing CHAR(42) and CHAR(47) in 1 formula

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    What's the aim here.

    Is it
    1. Strip out the Description only (i.e. ignoring the quantity)
    2. Strip out the quantity, e.g. 24*60Pcs
    3. Find the position of either the "*" or "/" character
    Thank you for your help, I did attach the file.

  8. #8
    Registered User
    Join Date
    12-11-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel Pro Plus 2019
    Posts
    67

    Re: How to combine FINDing CHAR(42) and CHAR(47) in 1 formula

    Quote Originally Posted by Glenn Kennedy View Post
    What do you want to get as the results?
    Trying to extract size and packing, I am able to extract size but not packing.

    Thank you for your help.

  9. #9
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: How to combine FINDing CHAR(42) and CHAR(47) in 1 formula

    By packaging, you mean "case" right?
    It is very well extracted in the file I attached...Please check again.

  10. #10
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: How to combine FINDing CHAR(42) and CHAR(47) in 1 formula

    Ohh sorry, I think you replied that to Glenn.
    Also, my solution doesn't need any of the columns you made, just keep that helper column though.

  11. #11
    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: How to combine FINDing CHAR(42) and CHAR(47) in 1 formula

    Please see attached file with formulas. No helper columns needed.
    Attached Files Attached Files
    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

  12. #12
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to combine FINDing CHAR(42) and CHAR(47) in 1 formula

    ...or picking up Alkey's excellent offering for R2 and using that as the basis for a smaller Q column formula

    Q2

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    12-11-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel Pro Plus 2019
    Posts
    67

    Re: How to combine FINDing CHAR(42) and CHAR(47) in 1 formula

    Thank you AlKey for your help. If you could kindly explain the formulas in column Q & R it would help me maybe eliminate my "helper" columns all together for other columns.

  14. #14
    Registered User
    Join Date
    12-11-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel Pro Plus 2019
    Posts
    67

    Re: How to combine FINDing CHAR(42) and CHAR(47) in 1 formula

    Hi Richard,

    Thank you for your help. If you could kindly explain the formula I could maybe use it in other worksheets.

+ 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. Replies: 12
    Last Post: 04-08-2014, 08:12 PM
  2. [SOLVED] Function to take text from x:th char to next n char
    By Temporary-Failure in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-07-2013, 02:19 AM
  3. Changing a single Char in a string to another ASCII char
    By goofy78270 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-15-2007, 09:45 AM
  4. Replies: 6
    Last Post: 03-10-2006, 01:15 PM
  5. LIMIT NUMBER OF CHAR IN A COMBINE CELL
    By rafaeljsg in forum Excel General
    Replies: 1
    Last Post: 10-05-2005, 12: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