Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ed
 
Posts: n/a
Default How can I put a reference to a cell into a formula?

Here's what I've got - the formulas are named AA,BB,CC,&DD, respectively, and
"(numbers*2)" is in A1.

Basically I want to be able to use the respective values in the "numbers"
column in the formulas, but I don't know how to arrange or set up the
formulas to include them.

formulas text numbers IF functions
Desired Result
(numbers*2) A 1 IF(B1="A",AA,IF(B1="B",BB",IF(B1="C",CC,DD))) 2
(numbers*3) B 2 IF(B1="A",AA,IF(B1="B",BB",IF(B1="C",CC,DD))) 6
(numbers*4) C 3 IF(B1="A",AA,IF(B1="B",BB",IF(B1="C",CC,DD))) 12
(numbers*5) D 4 IF(B1="A",AA,IF(B1="B",BB",IF(B1="C",CC,DD))) 20

Any help would be greatly appreciated - thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
Niek Otten
 
Posts: n/a
Default How can I put a reference to a cell into a formula?

Not easy to see what you're trying to achieve.
The number of quotes in your formula is uneven, which doesn't seem right.
Without formulas, can you try and explain what you want to do?

--
Kind regards,

Niek Otten

"Ed" wrote in message
...
Here's what I've got - the formulas are named AA,BB,CC,&DD, respectively,
and
"(numbers*2)" is in A1.

Basically I want to be able to use the respective values in the "numbers"
column in the formulas, but I don't know how to arrange or set up the
formulas to include them.

formulas text numbers IF functions
Desired Result
(numbers*2) A 1 IF(B1="A",AA,IF(B1="B",BB",IF(B1="C",CC,DD))) 2
(numbers*3) B 2 IF(B1="A",AA,IF(B1="B",BB",IF(B1="C",CC,DD))) 6
(numbers*4) C 3 IF(B1="A",AA,IF(B1="B",BB",IF(B1="C",CC,DD))) 12
(numbers*5) D 4 IF(B1="A",AA,IF(B1="B",BB",IF(B1="C",CC,DD))) 20

Any help would be greatly appreciated - thanks!



  #3   Report Post  
Posted to microsoft.public.excel.misc
PeterAtherton
 
Posts: n/a
Default How can I put a reference to a cell into a formula?


"Ed" wrote:

Here's what I've got - the formulas are named AA,BB,CC,&DD, respectively, and
"(numbers*2)" is in A1.

Basically I want to be able to use the respective values in the "numbers"
column in the formulas, but I don't know how to arrange or set up the
formulas to include them.

formulas text numbers IF functions
Desired Result
(numbers*2) A 1 IF(B1="A",AA,IF(B1="B",BB",IF(B1="C",CC,DD))) 2
(numbers*3) B 2 IF(B1="A",AA,IF(B1="B",BB",IF(B1="C",CC,DD))) 6
(numbers*4) C 3 IF(B1="A",AA,IF(B1="B",BB",IF(B1="C",CC,DD))) 12
(numbers*5) D 4 IF(B1="A",AA,IF(B1="B",BB",IF(B1="C",CC,DD))) 20

I created Range Names Insert, Range Name, define.
In the name box I typed AA and in the Refers to box I type =2, then I
clicked the Add button. I repeated this BB refers to 3 and so on.

A1 to A4 = A, B, C, D and B1 to b4 = 1, 2, 3, 4 in C1 I typed the formula
=IF(A1="A",AA*B1,IF(A1="B",BB*B1,IF(A1="C",CC*B1,D D*B1)))
and copied this formula down to produce the results you want.


Regards
Peter
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
copied formula has correct cell reference, but result of original lvito Excel Worksheet Functions 1 October 14th 05 04:37 PM
How do I use cell reference instead of name in a formula? Steve L Excel Discussion (Misc queries) 5 August 25th 05 02:16 PM
formula to return the value of a cell based on a looked up true reference sarah Excel Worksheet Functions 2 February 2nd 05 08:15 PM
Formula with text and reference to a date cell [email protected] Excel Discussion (Misc queries) 1 January 11th 05 08:15 AM
Using a formula in a Hyperlink Cell reference sslabbe Excel Discussion (Misc queries) 4 December 10th 04 12:30 AM


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