Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 86
Default How to change sheet names via formula

Hello Everyone!

I have 5 sheets with different city names. On another sheet, called
Compare, the user selects the city, which populates B2.

In yet another sheet, I started with the formula =Compare!B2, which
successfully returned the selected city. However, I don't want the city
name, I only want it as a preface to switch to the appropriate sheet before
grabbing the data.

So I tried =(Compare!B2)!I2, I was hoping that the parentheses would switch
to the sheet that matched the city in B2 and return the value in I2, but no.

Does anyone know how to use a sheet name in a formula?

Thank you for your time.

Arlen
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default How to change sheet names via formula

=INDIRECT("'"&Compare!B2&"'!I2")

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Arlen" wrote in message
...
Hello Everyone!

I have 5 sheets with different city names. On another sheet, called
Compare, the user selects the city, which populates B2.

In yet another sheet, I started with the formula =Compare!B2, which
successfully returned the selected city. However, I don't want the city
name, I only want it as a preface to switch to the appropriate sheet
before
grabbing the data.

So I tried =(Compare!B2)!I2, I was hoping that the parentheses would
switch
to the sheet that matched the city in B2 and return the value in I2, but
no.

Does anyone know how to use a sheet name in a formula?

Thank you for your time.

Arlen



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default How to change sheet names via formula

=INDIRECT("'" & Compare!B2 & "'!I2")

HTH,
Bernie
MS Excel MVP


"Arlen" wrote in message
...
Hello Everyone!

I have 5 sheets with different city names. On another sheet, called
Compare, the user selects the city, which populates B2.

In yet another sheet, I started with the formula =Compare!B2, which
successfully returned the selected city. However, I don't want the city
name, I only want it as a preface to switch to the appropriate sheet before
grabbing the data.

So I tried =(Compare!B2)!I2, I was hoping that the parentheses would switch
to the sheet that matched the city in B2 and return the value in I2, but no.

Does anyone know how to use a sheet name in a formula?

Thank you for your time.

Arlen



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 86
Default How to change sheet names via formula

Brilliant, guys!

Thanks to both of you.

Arlen

"Bernie Deitrick" wrote:

=INDIRECT("'" & Compare!B2 & "'!I2")

HTH,
Bernie
MS Excel MVP


"Arlen" wrote in message
...
Hello Everyone!

I have 5 sheets with different city names. On another sheet, called
Compare, the user selects the city, which populates B2.

In yet another sheet, I started with the formula =Compare!B2, which
successfully returned the selected city. However, I don't want the city
name, I only want it as a preface to switch to the appropriate sheet before
grabbing the data.

So I tried =(Compare!B2)!I2, I was hoping that the parentheses would switch
to the sheet that matched the city in B2 and return the value in I2, but no.

Does anyone know how to use a sheet name in a formula?

Thank you for your time.

Arlen




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
how to change formula in shared sheet without loss of change histo DCE Excel Worksheet Functions 1 July 23rd 08 05:09 PM
Cell names = sheet names Vince Excel Worksheet Functions 9 February 8th 08 03:59 PM
Named sheet to change Cells names Skrapik New Users to Excel 3 August 11th 07 04:46 AM
Is it possible to change a Sheet reference in a formula? Stuart Peters Excel Discussion (Misc queries) 1 June 16th 06 10:54 PM
Change sheet name in formula kojimm Excel Worksheet Functions 4 July 15th 05 11:43 PM


All times are GMT +1. The time now is 12:13 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"