Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
lasca
 
Posts: n/a
Default Text formating in formula

Hi,

I have the following problem:

In cell A1 I have a value of BP/SA, in cell B1 I want the sum of a named
range based on the value in cell A1 ie, "bp_sa", my Formula is thus
"=sum(bp_sa)".

I need to do a formula that will link the value from A1 and come up with
this, =sum(substitute(A1,"/","_"), The result is =sum("BP_SA") INSTEAD OF
=SUM(BP_SA). How do i get rid of the quotes around the returned value of
bp_sa.

Thx

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Text formating in formula

=SUM(INDIRECT(SUBSTITUTE(A1,"/","_")))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"lasca" wrote in message
...
Hi,

I have the following problem:

In cell A1 I have a value of BP/SA, in cell B1 I want the sum of a named
range based on the value in cell A1 ie, "bp_sa", my Formula is thus
"=sum(bp_sa)".

I need to do a formula that will link the value from A1 and come up with
this, =sum(substitute(A1,"/","_"), The result is =sum("BP_SA") INSTEAD OF
=SUM(BP_SA). How do i get rid of the quotes around the returned value of
bp_sa.

Thx



  #3   Report Post  
Posted to microsoft.public.excel.misc
Toppers
 
Posts: n/a
Default Text formating in formula


=SUM(INDIRECT(SUBSTITUTE(A1,"/","_")))

HTH

"lasca" wrote:

Hi,

I have the following problem:

In cell A1 I have a value of BP/SA, in cell B1 I want the sum of a named
range based on the value in cell A1 ie, "bp_sa", my Formula is thus
"=sum(bp_sa)".

I need to do a formula that will link the value from A1 and come up with
this, =sum(substitute(A1,"/","_"), The result is =sum("BP_SA") INSTEAD OF
=SUM(BP_SA). How do i get rid of the quotes around the returned value of
bp_sa.

Thx

  #4   Report Post  
Posted to microsoft.public.excel.misc
lasca
 
Posts: n/a
Default Text formating in formula

Thx!!!!! It worked

"Toppers" wrote:


=SUM(INDIRECT(SUBSTITUTE(A1,"/","_")))

HTH

"lasca" wrote:

Hi,

I have the following problem:

In cell A1 I have a value of BP/SA, in cell B1 I want the sum of a named
range based on the value in cell A1 ie, "bp_sa", my Formula is thus
"=sum(bp_sa)".

I need to do a formula that will link the value from A1 and come up with
this, =sum(substitute(A1,"/","_"), The result is =sum("BP_SA") INSTEAD OF
=SUM(BP_SA). How do i get rid of the quotes around the returned value of
bp_sa.

Thx

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
Invisable text in formula bar Leroy-P Excel Discussion (Misc queries) 2 December 8th 05 02:40 PM
Convert text to formula - Help pleaaase Ayrton Excel Discussion (Misc queries) 5 December 7th 05 05:26 PM
Formula Being treated as Text BBB Excel Worksheet Functions 2 September 20th 05 05:38 PM
Using the text from a cell as a range name in a formula Fletch Excel Discussion (Misc queries) 3 June 13th 05 07:57 PM
Conditional Formating when result is text Lary Excel Worksheet Functions 1 December 16th 04 02:13 AM


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