Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jet
 
Posts: n/a
Default Tab name when cell is blank

I have a multiple worhseet workbook. I need to see the tab name for those
worksheet that have a specific blank cell. So, within a range of worksheets
I need the tab name for those where A1 is blank.

Your help is greatly appreciated

Regards from Montreal
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Not really sure what you mean, do you want a list of all such sheets (which
will need VBA), or do you want a formula that will test a value in a sheet
(which needs the sheet name to test - circuitous).

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jet" wrote in message
...
I have a multiple worhseet workbook. I need to see the tab name for those
worksheet that have a specific blank cell. So, within a range of

worksheets
I need the tab name for those where A1 is blank.

Your help is greatly appreciated

Regards from Montreal



  #3   Report Post  
Chip Pearson
 
Posts: n/a
Default

You can use a custom VBA function like the following:

Function GetSheetNames() As Variant
Application.Volatile True
Dim Arr() As String
Dim Ndx As Long: Ndx = 1
Dim WS As Worksheet
ReDim Arr(1 To Application.Caller.Parent.Parent.Worksheets.Count)
For Each WS In Application.Caller.Parent.Parent.Worksheets
If WS.Range("A1").Value = "" Then
Arr(Ndx) = WS.Name
Ndx = Ndx + 1
End If
Next WS
If Application.Caller.Rows.Count = 1 Then
GetSheetNames = Arr
Else
GetSheetNames = Application.Transpose(Arr)
End If

End Function

Select the cells in which you want the worksheet names to appear
(this range should contains the same number of cells as the total
number of worksheets), type the formula =GetSheetNames() and
press Ctrl+Shift+Enter rather than just Enter.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com





"Jet" wrote in message
...
I have a multiple worhseet workbook. I need to see the tab name
for those
worksheet that have a specific blank cell. So, within a range
of worksheets
I need the tab name for those where A1 is blank.

Your help is greatly appreciated

Regards from Montreal



  #4   Report Post  
CyberTaz
 
Posts: n/a
Default

Maybe I'm missing the point or perhaps I'm oversimplifying the issue, but why
not just use a formula on Sheet1 such as :

=IF(Sheet2!A10,"","Sheet2!") ?

Seems to work for me |:)

"Jet" wrote:

I have a multiple worhseet workbook. I need to see the tab name for those
worksheet that have a specific blank cell. So, within a range of worksheets
I need the tab name for those where A1 is blank.

Your help is greatly appreciated

Regards from Montreal

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
Look for change next blank cell in Range Nigel Bennett Excel Worksheet Functions 1 March 13th 05 09:45 PM
Go to first blank cell Curt D. Excel Worksheet Functions 4 February 28th 05 10:27 AM
How would I fill blank cells with the data from a previous cell? Clive Darling Excel Discussion (Misc queries) 3 January 6th 05 01:10 AM
How to read a blank cell as zero for formulas? mrssm5 Excel Discussion (Misc queries) 2 December 23rd 04 01:48 PM
Help with formula to make cell blank Inspector Excel Worksheet Functions 5 November 18th 04 08:15 PM


All times are GMT +1. The time now is 01:35 PM.

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"