+ Reply to Thread
Results 1 to 8 of 8

Need a formula for a number range including a letter.

  1. #1
    Registered User
    Join Date
    07-12-2014
    Location
    Burbank, CA
    MS-Off Ver
    2010
    Posts
    2

    Need a formula for a number range including a letter.

    I'm trying to create a form which will allow people to sign out pads of paper, the individual sheets on these pads are numbered with a letter and numbers. There are 30 sheets to a pad and I'd need the form eventually look like this:

    Number Name Date
    E123100 - E123129 John Smith 3-10-14
    E123130 - E123159 Brian Jackson 5-22-14
    E123160 - E123189 Jane Martin 6-2-14
    E123190 - E123219 Ryan Williams 7-1-14



    The name and date fields will be filled in by hand but I need the number fields to be a range with the letter included in the number, is there a formula I could use on Excel to achieve this?

    TIA!!

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Need a formula for a number range including a letter.

    In A2 you could use

    ="E"&TEXT(((ROW()-2)*PagesPerPad)+PadStartNumber,"\E0")& TEXT(((ROW()-1)*PagesPerPad)+PadStartNumber-1," \- \E0")

    Where PadStartNumber is a named cell containing 123100. And PagesPerPad is a named cell containing 30.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Need a formula for a number range including a letter.

    ="e"&text(0+rows($1:2)*30-30,"000000")&"-"&"e"&text(0+rows($1:2)*30-30,"000029")
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Need a formula for a number range including a letter.

    Check out the attached. Sheet1 uses a formula to extract the number portion and add the right number to it and put an E back in front of it. Sheet2 used just numbers, but with a formatting that appears to put an E in front of the number.
    Number Range Including Letter.xlsx
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Need a formula for a number range including a letter.

    gak67 try that with a number like 000030

  6. #6
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Need a formula for a number range including a letter.

    Agreed, Sheet1 formulas need adjusting, assuming the OP wants/needs the format to be E000030 rather than E30, but if that assumption is true Sheet2 would still work as required.

  7. #7
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Need a formula for a number range including a letter.

    Sheet1 now corrected for the issue martindwilson pointed out.
    Number Range Including Letter.xlsx

  8. #8
    Registered User
    Join Date
    07-12-2014
    Location
    Burbank, CA
    MS-Off Ver
    2010
    Posts
    2

    Re: Need a formula for a number range including a letter.

    Thank you so much gak67(Glenn), martindwilson (Martin), and Andy Pope for replying! Glenn the spreadsheet you provided works perfectly and even though I'm not the greatest at reading and writing code I'm able to go through and make changes effortlessly! This will definitely help elevate our office into the modern times

    Thanks again guys!

+ 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: 5
    Last Post: 01-12-2014, 03:40 AM
  2. [SOLVED] Want to count the number of times a particular letter appears within a range
    By dwhite30518 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-11-2013, 01:24 PM
  3. Replies: 17
    Last Post: 07-16-2009, 03:12 AM
  4. count a number range and a letter in a cell
    By santaviga in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-28-2006, 06:15 AM
  5. Identify the column of a range by letter instead of number
    By Peter Rooney in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-10-2006, 06:35 AM

Tags for this Thread

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