+ Reply to Thread
Results 1 to 13 of 13

How to reconstruct a bates number

  1. #1
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 2010
    Posts
    164

    How to reconstruct a bates number

    I'm working on a template that will allow me to reconstruct a bates number from opposing counsel and I can't figure out how to go about it. We sometimes get a bates number range such as "Bates00000123-32". That means this is a range of numbers from 132 thur 132. I can extract the text and numbers from each other, but I can't figure where to go from there. Because the second part of the bates number is basically abbreviated, and drops the number that is the same (meaning a "1" in this case). I'm trying to devise a way to make the "32" portion actually look like "132". It could also be something like "Bates00001085-154". So, 1085 for the first part of the bates and 1154 for the second portion.

    For example sake, say cell A1 has 123 and cell A2 has 32. It's like I need add what numerical spot or spots are missing and add that back on to the second portion.

    I hope that makes sense and help would be appreciated.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to reconstruct a bates number

    c1 =A1&"-1"&B1
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 2010
    Posts
    164

    Re: How to reconstruct a bates number

    Well, I guess that work in certain situations, but there is often a lot larger bates range. I use this formula when I build a bates range in a cell.

    =IFERROR([@[Full First Bates]]&"-"&RIGHT([@[Full Second Bates]],LEN([@[Full Second Bates]])+1-MATCH(FALSE,INDEX(MID([@[Full First Bates]],ROW(INDIRECT("1:"&LEN([@[Full First Bates]]))),1)=MID([@[Full Second Bates]],ROW(INDIRECT("1:"&LEN([@[Full Second Bates]]))),1),0),0)),""&[@[Full First Bates]])
    I just can't figure out how to go the basically go the other way around.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to reconstruct a bates number

    add an small excel file without confidential information on this forum.

    please also add the result manualy in the file.

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to reconstruct a bates number

    Use fx for formula not a QUOTE, like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 2010
    Posts
    164

    Re: How to reconstruct a bates number

    I've attached a small file with two column shaded in yellow. Column E is what it should say in column D. I hope I gave enough examples there in Column E.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to reconstruct a bates number

    I used a VLookup table to find the data.


    g4=Right(A4,LEN(A4)-5)*1

    i4=if(H4="","",if(LEN(G4)=LEN(H4),max(G4,H4);MAX(G3,VLookup(LEN(G4),$K$1:$L$3,2,0)+H4)))

    See the attached file.
    Last edited by oeldere; 05-20-2017 at 05:36 AM. Reason: ; changed by ,

  8. #8
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 2010
    Posts
    164

    Re: How to reconstruct a bates number

    Okay, that was my fault, I clearly didn't give enough examples about the possibilities. So I revised the test file from what was returned yesterday and changed few examples. While I get the concept of where this could go, there so many other possibilities. For example, instead of just a number that was in the hundreds, what about the potential of the bates numbering being in the multiple thousands, and the second bates number only being in the hundreds, or even less. Also, even one of the examples doesn't work right on row 8.

    I really appreciate the effort, but I think this is wrong way to go about it. Any other suggestions.
    Attached Files Attached Files
    Last edited by Delta729; 05-20-2017 at 11:32 AM.

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to reconstruct a bates number

    Bates00805206 6425 805206 #N/B 1125
    WHY is the result of this row 1125 => please explain.

  10. #10
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 2010
    Posts
    164

    Re: How to reconstruct a bates number

    I don't understand this result at all, but it's in the spreadsheet. I reattached the sample again, but this time with an additional small table that shows what I use to make the combined numbers, down on cell C17. Maybe I should NOT be using the "text to column" feature to split the number up into different cells based on the "-" dash. And instead be using the combined numbers like in cells C17 thru C19 to calculate what the second portion (after the dash) should be? Does that make any sense.
    Attached Files Attached Files

  11. #11
    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 reconstruct a bates number

    Hi,

    Apart from the seeming anomaly that oeldere has flagged up perhaps I4 copied down.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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.

  12. #12
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 2010
    Posts
    164

    Re: How to reconstruct a bates number

    Okay, I'm pretty sure I have it working. I added two additional columns and used a LEN function in both. Then I added this formula in the cell where I wanted the full 2nd bates number. I seems to be working, but you never know. I posted it in case anybody else has any other ideas and so the can see what I was trying to do.

    IF([@[2nd Bates LEN]]<[@[1st Bates LEN]], LEFT([@[1st Bates extracted]], ([@[1st Bates LEN]]-[@[2nd Bates LEN]]))&[@[2nd Bates]], IF([@[2nd Bates LEN]]=[@[1st Bates LEN]], [@[2nd Bates]], IF([@[1st Bates LEN]]<[@[2nd Bates LEN]],[@[2nd Bates]],"")))
    Thanks for you help.
    Attached Files Attached Files

  13. #13
    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 reconstruct a bates number

    ..or a variation to my earlier formula since the column refs are different, in F4 copied down (no helper columns required)

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Richard Buttrey; 05-20-2017 at 04:33 PM.

+ 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 concatenate bates range
    By Delta729 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-29-2017, 09:13 PM
  2. Reconstruct data after sorting error
    By coloradoangel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-05-2014, 08:50 PM
  3. Replies: 10
    Last Post: 10-30-2013, 07:29 PM
  4. Vba reconstruct codes
    By mcmunoz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-16-2013, 01:46 AM
  5. Reconstruct sequence and fill gaps with zeroes
    By rover233 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-01-2013, 01:46 PM
  6. Reconstruct data from graph
    By Grafit in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-12-2012, 02:24 PM
  7. generate bates numbers on labels
    By Pepper in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-06-2006, 10:00 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