Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default membercode check

Hi there,

i try to create a membercoding.. made out of the first 4 letters of the
lastname and a following number.

lastnames
jansen JANS1
jansen JANS2
janssen JANS3
jansons JANS4
jan JAN1

so when i type in a new member with the name

Jansma it generates the code JANS5

....

al also need this for access..
where i'm trying to create a big member database..

thanks for all the help




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default membercode check

Sort then Ascending in column A

typ in colum B1 the correct short version.

type in B2
"=IF(LEFT(A2,4)=LEFT(B1,4),LEFT(A2,4)&MID(B1,5,2)+ 1,LEFT(A2,4)& 1)"

copy down.

regards

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 168
Default membercode check

On Nov 9, 4:46*am, "Swingleft" wrote:
Hi there,

i try to create a membercoding.. made out of the first 4 letters of the
lastname and a following number.

lastnames
jansen * * * *JANS1
jansen * * * *JANS2
janssen * * *JANS3
jansons * * *JANS4
jan * * * * * * JAN1

so when i type in a new member with the name

Jansma it generates the code JANS5

...

al also need this for access..
where i'm trying to create a big member database..

thanks for all the help


"If desired, send your file to dguillett @gmail.com I will only look
if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results."
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy and move check box (check boxes) with new cell link? Marty Excel Worksheet Functions 1 January 20th 10 07:43 PM
Loop through column(s) to check values, perform action based on check ward376 Excel Programming 4 November 6th 07 03:21 PM
Increase size of a Forms Check Box (click on to enter check mark) 718Satoshi Excel Discussion (Misc queries) 0 August 17th 07 01:52 AM
Check if Conditional Format is True or False / Check cell Color Kevin McCartney Excel Worksheet Functions 5 June 29th 07 11:12 AM
Enable check box in protected sheet + group check boxes Dexxterr Excel Discussion (Misc queries) 4 August 2nd 06 12:00 PM


All times are GMT +1. The time now is 02:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"