Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Combine 2 cells to match a predefined name?

I have different columns named 2007 (A1), 2008 (B1), 2009 (C1), etc. I have
a cell on a different sheet that I have named "Inc.2007". Is there a way to
combine "Inc."&A1 and have it return the value in the named cell?

As I do it now, I put ="Inc."&A1, and it returns the value "Inc.2007",
instead of the value that is named "Inc.2007'. Is there any way to make this
work?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Combine 2 cells to match a predefined name?

INDIRECT will do it for you:
=INDIRECT("Inc."&A1)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,500 Files:362 Subscribers:62
xdemechanik
---
"tgardiner" wrote:
I have different columns named 2007 (A1), 2008 (B1), 2009 (C1), etc. I have
a cell on a different sheet that I have named "Inc.2007". Is there a way to
combine "Inc."&A1 and have it return the value in the named cell?

As I do it now, I put ="Inc."&A1, and it returns the value "Inc.2007",
instead of the value that is named "Inc.2007'. Is there any way to make this
work?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 461
Default Combine 2 cells to match a predefined name?

Use the indirect function

Such as

=Indirect("Inc."&A1)

"tgardiner" wrote:

I have different columns named 2007 (A1), 2008 (B1), 2009 (C1), etc. I have
a cell on a different sheet that I have named "Inc.2007". Is there a way to
combine "Inc."&A1 and have it return the value in the named cell?

As I do it now, I put ="Inc."&A1, and it returns the value "Inc.2007",
instead of the value that is named "Inc.2007'. Is there any way to make this
work?

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Combine 2 cells to match a predefined name?

Clarification
=INDIRECT("Inc."&A1)

presumes A1 will contain only: 2007

If you have the full string entered in A1, ie: Inc.2007
then just use: =INDIRECT(A1)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,500 Files:362 Subscribers:62
xdemechanik
---
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,073
Default Combine 2 cells to match a predefined name?

On Oct 23, 10:08*am, tgardiner
wrote:
I have different columns named 2007 (A1), 2008 (B1), 2009 (C1), etc. *I have
a cell on a different sheet that I have named "Inc.2007". *Is there a way to
combine "Inc."&A1 and have it return the value in the named cell?

As I do it now, I put ="Inc."&A1, and it returns the value "Inc.2007",
instead of the value that is named "Inc.2007'. *Is there any way to make this
work?


Try...

=INDIRECT("Inc."&A1)

Ken Johnson


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Combine 2 cells to match a predefined name?

If it is in the same workbook you could try this:

=INDIRECT("Inc."&A1)

You might need to put the sheet name before the Inc.

INDIRECT only works with open files.

Hope this helps.

Pete

On Oct 23, 12:08*am, tgardiner
wrote:
I have different columns named 2007 (A1), 2008 (B1), 2009 (C1), etc. *I have
a cell on a different sheet that I have named "Inc.2007". *Is there a way to
combine "Inc."&A1 and have it return the value in the named cell?

As I do it now, I put ="Inc."&A1, and it returns the value "Inc.2007",
instead of the value that is named "Inc.2007'. *Is there any way to make this
work?


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Combine 2 cells to match a predefined name?

Thank you very much -- I feel stupid (but glad) that it is such an easy answer.

"Max" wrote:

INDIRECT will do it for you:
=INDIRECT("Inc."&A1)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,500 Files:362 Subscribers:62
xdemechanik
---
"tgardiner" wrote:
I have different columns named 2007 (A1), 2008 (B1), 2009 (C1), etc. I have
a cell on a different sheet that I have named "Inc.2007". Is there a way to
combine "Inc."&A1 and have it return the value in the named cell?

As I do it now, I put ="Inc."&A1, and it returns the value "Inc.2007",
instead of the value that is named "Inc.2007'. Is there any way to make this
work?

  #8   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Combine 2 cells to match a predefined name?

Thank you very much -- I feel stupid (but glad) that it is such an easy
answer.

Welcome. Ah, don't ever need to feel that way. Always ask.
There's quite a number of responders here to help you out.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,500 Files:362 Subscribers:62
xdemechanik
---


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
Combine cells with the same reference and combine quantities brandon Excel Discussion (Misc queries) 2 September 17th 08 05:44 PM
Combine two predefined borders sammy Excel Discussion (Misc queries) 4 September 2nd 08 06:44 PM
Excel: Combine and match two data [email protected] Excel Discussion (Misc queries) 1 December 7th 06 12:31 AM
Combine index match and sumproduct Esrei Excel Discussion (Misc queries) 2 July 8th 06 05:22 PM
How do I combine and match data from 2 sheets CathyW Excel Discussion (Misc queries) 3 March 23rd 06 10:18 PM


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