+ Reply to Thread
Results 1 to 17 of 17

Pulling a 10 digit character that begins with a B - Formula help!

  1. #1
    Registered User
    Join Date
    08-13-2018
    Location
    U.S
    MS-Off Ver
    2016
    Posts
    53

    Pulling a 10 digit character that begins with a B - Formula help!

    Hello, friends. Today I am trying to write a formula that will pull any 10 character ASIN that begins with a "B". The Asin will always begin with a B and be 10 characters long. I am only wanting the formula to pull in the asin from the row it is entered into. Thank you in advance for any help you can provide!

    Sample Data:


    BLT70 KB520-7999 16.34 8000 2016-06-14 12:57:12 PDT y 1 This is a brand new item! 11 B01AGQ69GQ
    0429PV9CUU1 BLT70 KB520-9998 20.84 8000 2015-04-29 12:39:41 PDT y 1 Heavy Duty 11
    16.11 7999 2016-06-14 12:57:16 PDT y 1 This is a brand new item! 11 B01AIWA8CE
    16.61 8000 2016-06-14 12:57:15 PDT y 1 This is a brand new item! 11 B01AGQ3Q6W
    16.61 8000 2016-06-14 12:57:14 PDT y 1 This is a brand new item! 11 B01AGQ1RY0
    16.88 8000 2016-06-14 12:57:17 PDT y 1 This is a brand new item! 11 B01AGQ5BLU
    BLT70 KB580-50 19.71 7999 2014-01-27 08:09:47 PST y 1 11 B001OK8RPA
    BLT70 KB580-7998 17.95 8000 2016-06-14 12:57:20 PDT y 1 This is a brand new item! 11 B01AGQ06OC
    BLT70 KB580-7999 17.95 8000 2016-06-14 12:57:19 PDT y 1 This is a brand new item! 11 B01AGQ05F2
    BLT70 KB590-27 19.71 7999 2014-01-27 13:41:22 PST y 1 11 B001OKD962
    BLT70 KB590-7999 18.22 8000 2016-06-14 12:57:21 PDT y 1 This is a brand new item! 11 B01AGQAD6S
    BLT70 KB600-7999 18.49 8000 2016-06-14 12:57:22 PDT y 1 This is a brand new item! 11 B01AGQ7BCM
    BLT70 KB610-7998 16.34 8000 2016-06-14 12:57:24 PDT y 1 This is a brand new item! 11 B00NX4LV76
    BLT70 KB610-7999 18.76 8000 2016-06-14 12:57:23 PDT y 1 This is a brand new item! 11 B01AGQ3GOE
    BLT70 KB620-7997 19.03 7994 2016-06-14 12:57:26 PDT y 1 This is a brand new item! 11 B01AGQ04BC
    BLT70 KB620-7998 19.03 8000 2016-06-14 12:57:25 PDT y 1 This is a brand new item! 11 B01AGPZUQ2
    BLT70 KB620-7999 19.03 8000 2016-06-14 12:57:24 PDT y 1 This is a brand new item! 11 B01AGQ4044

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Pulling a 10 digit character that begins with a B - Formula help!

    Try this in B1:

    =IF(LEFT(RIGHT(TRIM(A1),10))="B",RIGHT(TRIM(A1),10),"")

  3. #3
    Registered User
    Join Date
    08-13-2018
    Location
    U.S
    MS-Off Ver
    2016
    Posts
    53

    Re: Pulling a 10 digit character that begins with a B - Formula help!

    That doesnt seem to do it for me. The ASIN number is found in different columns within the row so I am trying to search the entire row for any 10 character number that begins with a B and pull that in.

  4. #4
    Registered User
    Join Date
    08-13-2018
    Location
    U.S
    MS-Off Ver
    2016
    Posts
    53

    Re: Pulling a 10 digit character that begins with a B - Formula help!

    Quote Originally Posted by 63falcondude View Post
    Try this in B1:

    =IF(LEFT(RIGHT(TRIM(A1),10))="B",RIGHT(TRIM(A1),10),"")
    That doesnt seem to do it for me. The ASIN number is found in different columns within the row so I am trying to search the entire row for any 10 character number that begins with a B and pull that in.

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Pulling a 10 digit character that begins with a B - Formula help!

    From the looks of your "sample" from post #1, I assumed that everything was in one column.

    I recommend uploading a small representative sample workbook of the data along with the desired result (which you can enter manually) based on that sample.

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"

  6. #6
    Registered User
    Join Date
    08-13-2018
    Location
    U.S
    MS-Off Ver
    2016
    Posts
    53

    Re: Pulling a 10 digit character that begins with a B - Formula help!

    Quote Originally Posted by 63falcondude View Post
    From the looks of your "sample" from post #1, I assumed that everything was in one column.

    I recommend uploading a small representative sample workbook of the data along with the desired result (which you can enter manually) based on that sample.

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"
    Sorry, having issues uploading attachments

    The ASIN number is found in different columns within the row so I am trying to search the entire row for any 10 character number that begins with a B and pull that in. Any help you can provide would be greatly appreciated

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Pulling a 10 digit character that begins with a B - Formula help!

    Sorry, having issues uploading attachments
    Did you follow the instructions from post #5? If you tried using the paperclip instead, that could be what is giving you issues.

  8. #8
    Registered User
    Join Date
    08-13-2018
    Location
    U.S
    MS-Off Ver
    2016
    Posts
    53

    Re: Pulling a 10 digit character that begins with a B - Formula help!

    Quote Originally Posted by 63falcondude View Post
    Did you follow the instructions from post #5? If you tried using the paperclip instead, that could be what is giving you issues.
    I am dumb. You should see it now.
    Attached Files Attached Files

  9. #9
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Pulling a 10 digit character that begins with a B - Formula help!

    Try this in X1:

    =INDEX(A1:T1,MATCH("B?????????",A1:T1&"",0)) Ctrl Shift Enter

    Drag the formula down.

  10. #10
    Registered User
    Join Date
    08-13-2018
    Location
    U.S
    MS-Off Ver
    2016
    Posts
    53

    Re: Pulling a 10 digit character that begins with a B - Formula help!

    Quote Originally Posted by 63falcondude View Post
    Try this in X1:

    =INDEX(A1:T1,MATCH("B?????????",A1:T1&"",0)) Ctrl Shift Enter

    Drag the formula down.

    That does not seem to work. Does that one work for you?

  11. #11
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Pulling a 10 digit character that begins with a B - Formula help!

    Yes it does work for me.

    What results are you getting to make you say that it doesn't work?

    If you are getting #VALUE! errors, you didn't confirm the formula using Ctrl Shift Enter (the bold part in post #9).

  12. #12
    Registered User
    Join Date
    08-13-2018
    Location
    U.S
    MS-Off Ver
    2016
    Posts
    53

    Re: Pulling a 10 digit character that begins with a B - Formula help!

    Quote Originally Posted by 63falcondude View Post
    Yes it does work for me.

    What results are you getting to make you say that it doesn't work?

    If you are getting #VALUE! errors, you didn't confirm the formula using Ctrl Shift Enter (the bold part in post #9).
    63falcondude, you are the man. I didnt realize I had to double click in the cell before I hit that. I am a noob. Thank you again for your help! It is working great!

  13. #13
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Pulling a 10 digit character that begins with a B - Formula help!

    Happy to help. Thanks for the rep!

  14. #14
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Pulling a 10 digit character that begins with a B - Formula help!

    Quote Originally Posted by 63falcondude View Post
    If you are getting #VALUE! errors, you didn't confirm the formula using Ctrl Shift Enter (the bold part in post #9).
    Had a quick glance at this earlier, I noticed the dupe but you had already flagged it.

    Curious as to why you've used CSE when using =INDEX(A3:T3,MATCH("B?????????",A3:T3,0)) without array confirmation should do as needed. Did I miss something?

    If I'm not missing anything, given that the ASIN appears to be in the last populated column of each row, =LOOKUP("zzz",A3:T3) should also work, but only if that definitely a consistent factor.

  15. #15
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Pulling a 10 digit character that begins with a B - Formula help!

    Hi Jason. =LOOKUP("zzz",A3:T3) does work in the sample from post #8.

    The sample from post #1 had one instance where the ASIN was not there so the LOOKUP formula would return an undesired result in that instance.

    The formula from post #9 does have to be entered as an array formula. You missed the &"" part.

  16. #16
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Pulling a 10 digit character that begins with a B - Formula help!

    Ooh I see what you're saying. Yes I think you're right that you can do without the &"" section and thus enter the formula normally.

  17. #17
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Pulling a 10 digit character that begins with a B - Formula help!

    It was the need for the &"" with the array that was making me think i had missed something (it was omitted from my post )

    =INDEX(A3:T3,MATCH("B?????????",A3:T3,0))

    and

    {=INDEX(A3:T3,MATCH("B?????????",A3:T3&"",0))}

    Both appear to work correctly.

    I wasn't trying to say it was wrong, just wondering what your logic was behind the suggestion. Quite often simple things are easily missed, I thought maybe you were seeing something that I wasn't.

+ 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: 3
    Last Post: 01-27-2017, 08:11 AM
  2. Space after every 4th Number in a 16 digit Character Set
    By Flipback in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2014, 01:20 AM
  3. [SOLVED] copy rows where column data begins with an alpha character
    By shaz0503 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-22-2013, 10:05 PM
  4. [SOLVED] pulling out 12 digit number from an alphanumeric string
    By susan doyle in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-19-2013, 08:49 AM
  5. [SOLVED] How to copy all character till first space which begins with "RXO" data
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-06-2013, 07:35 AM
  6. Pulling 5-digit zip codes from fields
    By lthomas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-28-2011, 10:56 AM
  7. how to remove all the spaces behind the last character/digit
    By ttik in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-12-2007, 11:07 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