Worksheet relative reference

FredMcStaire

New Member
Joined
Jan 19, 2009
Messages
36
Is there a formula, no VBA please, that can return the relative position of a worksheet in a workbook? For example, the formula would return a "2" when pointed at the second tab, and a 10 when pointed at the 10th?

Thanks
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi

You can using an old XLM4 macro function:

1. Create a name (Formulas>Define Name in xl2010) and call it ShtNum
2. In the refers to dialog write:

=GET.DOCUMENT(87)+NOW()-NOW()

Back in the document, type

=ShtNum

into your sheet. It will return the index position of the sheet (including Hidden Sheets it would appear).
 
Upvote 0

Forum statistics

Threads
1,215,365
Messages
6,124,513
Members
449,168
Latest member
CheerfulWalker

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top