Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default Indirect/Concatenate query

I have a multi-sheet spreadsheet and am trying to pick up a named field
(StageName_1 .... n) that is defined on the OverallInfo worksheet. The
numeric suffix depends upon the value of the contents of the Milestone
it is related to

StageName_1 is a named field OverallInfo, E7
StageName_2 is a named field OverallInfo, E17
StageName_3 is a named field OverallInfo, E27

A30 = 100
A57 = 200
A84 = 300 etc

I ended up with the formula

=Indirect(Concatenate("StageName_",(A30/100)

But all I end up with is #REF. I countered this by using
If(IsError(Indirect etc, but that just resulted in a blank or empty
cell instead of the value of StageName_1/2/3 etc.

What am I doing wrong ?

Cheers
Fred

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 136
Default Indirect/Concatenate query

Hello Fred,

You did nothing wrong. It should work.

What do you get if you enter the formula editor, mark the formula part
A30/100 and push F9? Exactly 1?

Regards,
Bernd

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Indirect/Concatenate query

Maybe try

=Indirect(Concatenate("StageName_",ROUND(A30/100,0)))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Fred" wrote in message
oups.com...
I have a multi-sheet spreadsheet and am trying to pick up a named field
(StageName_1 .... n) that is defined on the OverallInfo worksheet. The
numeric suffix depends upon the value of the contents of the Milestone
it is related to

StageName_1 is a named field OverallInfo, E7
StageName_2 is a named field OverallInfo, E17
StageName_3 is a named field OverallInfo, E27

A30 = 100
A57 = 200
A84 = 300 etc

I ended up with the formula

=Indirect(Concatenate("StageName_",(A30/100)

But all I end up with is #REF. I countered this by using
If(IsError(Indirect etc, but that just resulted in a blank or empty
cell instead of the value of StageName_1/2/3 etc.

What am I doing wrong ?

Cheers
Fred



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 225
Default Indirect/Concatenate query


=Indirect(Concatenate("StageName_",(A30/100)


This can't be the formula you used, because it's missing
two closing parentheses. It would be easier to help you if
posted the exact formula (copied from Excel).

Assume the missing parens at the end, it works for me: do
you get the expected result if you enter =StageName_1 in
the cell?

As has been suggested elsewhere, it might be wise to
round the A30/100 calculation, in case A30 is not exactly
100 but just displayed that way.

Incidentally, it's a lot less typing to use the ampersand
operator instead of the CONATENATE function:

=INDIRECT("StageName_"&(A30/100))


hth
Andrew Taylor



Fred wrote:
I have a multi-sheet spreadsheet and am trying to pick up a named field
(StageName_1 .... n) that is defined on the OverallInfo worksheet. The
numeric suffix depends upon the value of the contents of the Milestone
it is related to

StageName_1 is a named field OverallInfo, E7
StageName_2 is a named field OverallInfo, E17
StageName_3 is a named field OverallInfo, E27

A30 = 100
A57 = 200
A84 = 300 etc

I ended up with the formula

=Indirect(Concatenate("StageName_",(A30/100)

But all I end up with is #REF. I countered this by using
If(IsError(Indirect etc, but that just resulted in a blank or empty
cell instead of the value of StageName_1/2/3 etc.

What am I doing wrong ?

Cheers
Fred


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
Possible Indirect query Fred[_8_] Excel Discussion (Misc queries) 1 August 4th 11 09:24 PM
INDIRECT and CONCATENATE in Defined Name BillCPA Excel Discussion (Misc queries) 2 April 22nd 09 04:50 PM
Cannot Concatenate fields using Query CJ Excel Discussion (Misc queries) 6 September 10th 07 04:32 AM
Microsoft Query SQL Concatenate Richard Excel Discussion (Misc queries) 1 December 29th 06 03:48 PM
Indirect, Concatenate, & ? JEFF Excel Worksheet Functions 7 June 21st 05 08:17 PM


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