#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 81
Default Recurring Numbers

Hi Everyone,

I have a mini invoicing system and I would like to insert invoice numbers
that would increment automatically.

At the moment I am using this formula:=IF(K100,'01'!L7+1,"")

'K10' is the cell I insert the date in so I can see the invoice number only
after I insert the date. At the moment I am using about 300 workshets but I
can not find a way of how to copy the formula and changing the previous sheet
number.

Any help will be greatly appreciated

Thanks
Albert
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default Recurring Numbers

Hi,

Exactly how do you want your number to increment. What is the first number
and what is the second and so on...

What does the copying of spreadsheets have to do with the incrementing? Do
you mean that when you copy a sheet you want the incrementing to occur?

--
Thanks,
Shane Devenshire


"albertmb" wrote:

Hi Everyone,

I have a mini invoicing system and I would like to insert invoice numbers
that would increment automatically.

At the moment I am using this formula:=IF(K100,'01'!L7+1,"")

'K10' is the cell I insert the date in so I can see the invoice number only
after I insert the date. At the moment I am using about 300 workshets but I
can not find a way of how to copy the formula and changing the previous sheet
number.

Any help will be greatly appreciated

Thanks
Albert

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Recurring Numbers

See if this web page of John McGimpsey helps:

http://www.mcgimpsey.com/excel/udfs/sequentialnums.html

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"albertmb" wrote in message
...
Hi Everyone,

I have a mini invoicing system and I would like to insert invoice numbers
that would increment automatically.

At the moment I am using this formula:=IF(K100,'01'!L7+1,"")

'K10' is the cell I insert the date in so I can see the invoice number only
after I insert the date. At the moment I am using about 300 workshets but I
can not find a way of how to copy the formula and changing the previous
sheet
number.

Any help will be greatly appreciated

Thanks
Albert


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Recurring Numbers

Assuming L7 on each sheet is where you want the incremented number..........

Copy/paste this Function to a general module in your workbook.

Function PrevSheet(rg As Range)
Application.Volatile
n = Application.Caller.Parent.Index
If n = 1 Then
PrevSheet = CVErr(xlErrRef)
ElseIf TypeName(Sheets(n - 1)) = "Chart" Then
PrevSheet = CVErr(xlErrNA)
Else
PrevSheet = Sheets(n - 1).Range(rg.Address).Value
End If
End Function

Enter the number 1 in L7 on first sheet.

Select second sheet then SHIFT + Click on last sheet to group these sheets.

Select L7 on active sheet and enter this formula which will be entered on all
selected sheets.

IF(K100,prevsheet(L7) +1,"")

Ungroup the sheets and you're done.


Gord Dibben MS Excel MVP

On Fri, 11 Jan 2008 21:22:00 -0800, albertmb
wrote:

Hi Everyone,

I have a mini invoicing system and I would like to insert invoice numbers
that would increment automatically.

At the moment I am using this formula:=IF(K100,'01'!L7+1,"")

'K10' is the cell I insert the date in so I can see the invoice number only
after I insert the date. At the moment I am using about 300 workshets but I
can not find a way of how to copy the formula and changing the previous sheet
number.

Any help will be greatly appreciated

Thanks
Albert


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 81
Default Recurring Numbers

Thank you for your help, it worked perfectly. May I take this opportunity to
wish you and your family a most prosperous new year.

"Gord Dibben" wrote:

Assuming L7 on each sheet is where you want the incremented number..........

Copy/paste this Function to a general module in your workbook.

Function PrevSheet(rg As Range)
Application.Volatile
n = Application.Caller.Parent.Index
If n = 1 Then
PrevSheet = CVErr(xlErrRef)
ElseIf TypeName(Sheets(n - 1)) = "Chart" Then
PrevSheet = CVErr(xlErrNA)
Else
PrevSheet = Sheets(n - 1).Range(rg.Address).Value
End If
End Function

Enter the number 1 in L7 on first sheet.

Select second sheet then SHIFT + Click on last sheet to group these sheets.

Select L7 on active sheet and enter this formula which will be entered on all
selected sheets.

IF(K100,prevsheet(L7) +1,"")

Ungroup the sheets and you're done.


Gord Dibben MS Excel MVP

On Fri, 11 Jan 2008 21:22:00 -0800, albertmb
wrote:

Hi Everyone,

I have a mini invoicing system and I would like to insert invoice numbers
that would increment automatically.

At the moment I am using this formula:=IF(K100,'01'!L7+1,"")

'K10' is the cell I insert the date in so I can see the invoice number only
after I insert the date. At the moment I am using about 300 workshets but I
can not find a way of how to copy the formula and changing the previous sheet
number.

Any help will be greatly appreciated

Thanks
Albert





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 81
Default Recurring Numbers

Thank you very much for your concern. May I take this opportunity to wish you
and your family a most prosperous new year.
"RagDyeR" wrote:

See if this web page of John McGimpsey helps:

http://www.mcgimpsey.com/excel/udfs/sequentialnums.html

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"albertmb" wrote in message
...
Hi Everyone,

I have a mini invoicing system and I would like to insert invoice numbers
that would increment automatically.

At the moment I am using this formula:=IF(K100,'01'!L7+1,"")

'K10' is the cell I insert the date in so I can see the invoice number only
after I insert the date. At the moment I am using about 300 workshets but I
can not find a way of how to copy the formula and changing the previous
sheet
number.

Any help will be greatly appreciated

Thanks
Albert



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 81
Default Recurring Numbers

Thank you very much for your concern. May I take this opportunity to wish you
and your family a most prosperous new year.

"ShaneDevenshire" wrote:

Hi,

Exactly how do you want your number to increment. What is the first number
and what is the second and so on...

What does the copying of spreadsheets have to do with the incrementing? Do
you mean that when you copy a sheet you want the incrementing to occur?

--
Thanks,
Shane Devenshire


"albertmb" wrote:

Hi Everyone,

I have a mini invoicing system and I would like to insert invoice numbers
that would increment automatically.

At the moment I am using this formula:=IF(K100,'01'!L7+1,"")

'K10' is the cell I insert the date in so I can see the invoice number only
after I insert the date. At the moment I am using about 300 workshets but I
can not find a way of how to copy the formula and changing the previous sheet
number.

Any help will be greatly appreciated

Thanks
Albert

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Recurring Numbers

could you please give more detail on this...
1. Copy/paste this Function to a general module in your workbook... what is
a general module?

2. Copy/paste this Function to a... is this mean a single cell or many cells?

3. Select second sheet then SHIFT + Click on last sheet to group these
sheets. not sure what this means?

4. how do you group and ungroup sheets?

thank you

"Gord Dibben" wrote:

Assuming L7 on each sheet is where you want the incremented number..........

Copy/paste this Function to a general module in your workbook.

Function PrevSheet(rg As Range)
Application.Volatile
n = Application.Caller.Parent.Index
If n = 1 Then
PrevSheet = CVErr(xlErrRef)
ElseIf TypeName(Sheets(n - 1)) = "Chart" Then
PrevSheet = CVErr(xlErrNA)
Else
PrevSheet = Sheets(n - 1).Range(rg.Address).Value
End If
End Function

Enter the number 1 in L7 on first sheet.

Select second sheet then SHIFT + Click on last sheet to group these sheets.

Select L7 on active sheet and enter this formula which will be entered on all
selected sheets.

IF(K100,prevsheet(L7) +1,"")

Ungroup the sheets and you're done.


Gord Dibben MS Excel MVP

On Fri, 11 Jan 2008 21:22:00 -0800, albertmb
wrote:

Hi Everyone,

I have a mini invoicing system and I would like to insert invoice numbers
that would increment automatically.

At the moment I am using this formula:=IF(K100,'01'!L7+1,"")

'K10' is the cell I insert the date in so I can see the invoice number only
after I insert the date. At the moment I am using about 300 workshets but I
can not find a way of how to copy the formula and changing the previous sheet
number.

Any help will be greatly appreciated

Thanks
Albert



  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Recurring Numbers

See reply to your other post.

Gord

On Sun, 20 Apr 2008 11:33:00 -0700, tourpro
wrote:

could you please give more detail on this...
1. Copy/paste this Function to a general module in your workbook... what is
a general module?

2. Copy/paste this Function to a... is this mean a single cell or many cells?

3. Select second sheet then SHIFT + Click on last sheet to group these
sheets. not sure what this means?

4. how do you group and ungroup sheets?

thank you

"Gord Dibben" wrote:

Assuming L7 on each sheet is where you want the incremented number..........

Copy/paste this Function to a general module in your workbook.

Function PrevSheet(rg As Range)
Application.Volatile
n = Application.Caller.Parent.Index
If n = 1 Then
PrevSheet = CVErr(xlErrRef)
ElseIf TypeName(Sheets(n - 1)) = "Chart" Then
PrevSheet = CVErr(xlErrNA)
Else
PrevSheet = Sheets(n - 1).Range(rg.Address).Value
End If
End Function

Enter the number 1 in L7 on first sheet.

Select second sheet then SHIFT + Click on last sheet to group these sheets.

Select L7 on active sheet and enter this formula which will be entered on all
selected sheets.

IF(K100,prevsheet(L7) +1,"")

Ungroup the sheets and you're done.


Gord Dibben MS Excel MVP

On Fri, 11 Jan 2008 21:22:00 -0800, albertmb
wrote:

Hi Everyone,

I have a mini invoicing system and I would like to insert invoice numbers
that would increment automatically.

At the moment I am using this formula:=IF(K100,'01'!L7+1,"")

'K10' is the cell I insert the date in so I can see the invoice number only
after I insert the date. At the moment I am using about 300 workshets but I
can not find a way of how to copy the formula and changing the previous sheet
number.

Any help will be greatly appreciated

Thanks
Albert




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
Sum of every 6th column and recurring Pierian Spring Excel Worksheet Functions 3 January 17th 07 05:55 PM
Recurring Titles Don Excel Discussion (Misc queries) 2 June 26th 06 05:58 PM
Denoting recurring numbers in formulas JayBea Excel Worksheet Functions 7 October 13th 05 06:09 PM
How do I generate non-recurring random numbers to assign groups? hkoehnk Excel Discussion (Misc queries) 1 September 12th 05 08:07 PM
recurring dates sonoundio Excel Discussion (Misc queries) 1 May 24th 05 01:53 AM


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

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

About Us

"It's about Microsoft Excel"