Paul,

If i understood your requirement correctly then below formula works out for
you

[image: Inline image 1]

I have attached sample file as well.

Regards,
Karthik

On Thu, Feb 11, 2016 at 5:57 AM, Paul Bevins <paul.bevins...@gmail.com>
wrote:

> Hi, I've got an odd problem.
>
> I have a database of some 15000 numbers.
>
> 10,000 of them (roughly), go from 1 to 10,000.
> Another 5,000 go from 1,000,000 to 2,000,000.
>
> However, the numbers SHOULD AB00001 to AB10000.
>
> I need to be able to type the root number in and have Excel decide what it
> needs:
>
> 1         = AB00001   (7 digits)
> 22       = AB00022   (7 digits)
> 333     = AB00333   (7 digits)
> 4444   =AB04444   (7 digits)
> 15555 = AB15555   (7 digits)  (excusing that this number won't exist above
> 10,000, but five digits.)
> 100001 = 100001   (6 digits)
> 200002 = 200002  (same length at 6 digits)
>
> I have searched around quite a bit, but have been unable to find the terms
> to search for to get these answers.
> I'm beginning to think I'll need to do it with a VBA script, but am open
> to any simple method of doing it, since I type these numbers dozens of
> times a day,
>
> Anyone have any ideas?
>
> Thanks in advance for any help
>
> Paul
>
> --
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> https://www.facebook.com/discussexcel
>
> FORUM RULES
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>
> NOTE : Don't ever post confidential data in a workbook. Forum owners and
> members are not responsible for any loss.
> ---
> You received this message because you are subscribed to the Google Groups
> "MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to excel-macros+unsubscr...@googlegroups.com.
> To post to this group, send email to excel-macros@googlegroups.com.
> Visit this group at https://groups.google.com/group/excel-macros.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

Attachment: Google Groups.xlsx
Description: MS-Excel 2007 spreadsheet

Reply via email to