#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Combined formula

Hi all,

I have three cells with a value:

Cell Value
A1 Test1
A2 Test2
A3 Test3

I would like to have another cell where I can enter a value (e.g. 2) and
receive in an additional field the value (e.g. Test2).

How can I add to the formula (e.g. =A...) a variable from another field?

Kind regards,

Simon



  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Combined formula

One way
With B1 containing the input number, eg: 2
In C1: =INDEX(A1:A3,MATCH(TRUE,INDEX((RIGHT(A1:A3)=B1&"") ,),0))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,500 Files:362 Subscribers:62
xdemechanik
---
"Simon Minder" wrote:
I have three cells with a value:

Cell Value
A1 Test1
A2 Test2
A3 Test3

I would like to have another cell where I can enter a value (e.g. 2) and
receive in an additional field the value (e.g. Test2).

How can I add to the formula (e.g. =A...) a variable from another field?

Kind regards,

Simon



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Combined formula

Hi Max,

Thank you very much for your solution. However, I have a problem applying
the formula to my example.

I have three cells with a value:
Cell Value
A1 Test1
A2 Test2
A3 Test3

Let's assume I enter in a cell (B1) the value "1". I would like to see the
value "Test1" in cell (B2). If I enter the vaule "2" I would like to see the
value "Test2" in cell (B2).

The formula would be stored in the cell (B2) and would take the variable
from cell (B1).

Your formula seems to work only with numbers, but not with text in the
selected range (e.g. Test1...Test3).

Kind regards,

Simon


"Max" wrote:

One way
With B1 containing the input number, eg: 2
In C1: =INDEX(A1:A3,MATCH(TRUE,INDEX((RIGHT(A1:A3)=B1&"") ,),0))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,500 Files:362 Subscribers:62
xdemechanik
---
"Simon Minder" wrote:
I have three cells with a value:

Cell Value
A1 Test1
A2 Test2
A3 Test3

I would like to have another cell where I can enter a value (e.g. 2) and
receive in an additional field the value (e.g. Test2).

How can I add to the formula (e.g. =A...) a variable from another field?

Kind regards,

Simon



  #4   Report Post  
Posted to microsoft.public.excel.misc
RAZ RAZ is offline
external usenet poster
 
Posts: 120
Default Combined formula


try this

put this in B2
="Test"& B1


"Simon Minder" wrote:

Hi Max,

Thank you very much for your solution. However, I have a problem applying
the formula to my example.

I have three cells with a value:
Cell Value
A1 Test1
A2 Test2
A3 Test3

Let's assume I enter in a cell (B1) the value "1". I would like to see the
value "Test1" in cell (B2). If I enter the vaule "2" I would like to see the
value "Test2" in cell (B2).

The formula would be stored in the cell (B2) and would take the variable
from cell (B1).

Your formula seems to work only with numbers, but not with text in the
selected range (e.g. Test1...Test3).

Kind regards,

Simon


"Max" wrote:

One way
With B1 containing the input number, eg: 2
In C1: =INDEX(A1:A3,MATCH(TRUE,INDEX((RIGHT(A1:A3)=B1&"") ,),0))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,500 Files:362 Subscribers:62
xdemechanik
---
"Simon Minder" wrote:
I have three cells with a value:

Cell Value
A1 Test1
A2 Test2
A3 Test3

I would like to have another cell where I can enter a value (e.g. 2) and
receive in an additional field the value (e.g. Test2).

How can I add to the formula (e.g. =A...) a variable from another field?

Kind regards,

Simon



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Combined formula

Hi Raz,

Thank you for your advice, but I would like to select with the number in the
field "B1" a value out of the range A1...A3, by adding the number to the
formula. E.g. I type in "1" and the formula in "B2" would change to "=A1" and
display the value from "A1". If I enter the value "2" into the field "B1" I
would like to see "Test2" in the cell "B2" and the formula would be "=A2". I
only want to be able to change the number in the formula e.g. "1" in "=A1" to
a "2" when I enter a number "2" in a cell.

Kind regards,

Simon

"Raz" wrote:


try this

put this in B2
="Test"& B1


"Simon Minder" wrote:

Hi Max,

Thank you very much for your solution. However, I have a problem applying
the formula to my example.

I have three cells with a value:
Cell Value
A1 Test1
A2 Test2
A3 Test3

Let's assume I enter in a cell (B1) the value "1". I would like to see the
value "Test1" in cell (B2). If I enter the vaule "2" I would like to see the
value "Test2" in cell (B2).

The formula would be stored in the cell (B2) and would take the variable
from cell (B1).

Your formula seems to work only with numbers, but not with text in the
selected range (e.g. Test1...Test3).

Kind regards,

Simon


"Max" wrote:

One way
With B1 containing the input number, eg: 2
In C1: =INDEX(A1:A3,MATCH(TRUE,INDEX((RIGHT(A1:A3)=B1&"") ,),0))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,500 Files:362 Subscribers:62
xdemechanik
---
"Simon Minder" wrote:
I have three cells with a value:

Cell Value
A1 Test1
A2 Test2
A3 Test3

I would like to have another cell where I can enter a value (e.g. 2) and
receive in an additional field the value (e.g. Test2).

How can I add to the formula (e.g. =A...) a variable from another field?

Kind regards,

Simon





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Combined formula

Got it: =INDIRECT("sheet name"&ADDRESS(G1;G2))

"Simon Minder" wrote:

Hi Raz,

Thank you for your advice, but I would like to select with the number in the
field "B1" a value out of the range A1...A3, by adding the number to the
formula. E.g. I type in "1" and the formula in "B2" would change to "=A1" and
display the value from "A1". If I enter the value "2" into the field "B1" I
would like to see "Test2" in the cell "B2" and the formula would be "=A2". I
only want to be able to change the number in the formula e.g. "1" in "=A1" to
a "2" when I enter a number "2" in a cell.

Kind regards,

Simon

"Raz" wrote:


try this

put this in B2
="Test"& B1


"Simon Minder" wrote:

Hi Max,

Thank you very much for your solution. However, I have a problem applying
the formula to my example.

I have three cells with a value:
Cell Value
A1 Test1
A2 Test2
A3 Test3

Let's assume I enter in a cell (B1) the value "1". I would like to see the
value "Test1" in cell (B2). If I enter the vaule "2" I would like to see the
value "Test2" in cell (B2).

The formula would be stored in the cell (B2) and would take the variable
from cell (B1).

Your formula seems to work only with numbers, but not with text in the
selected range (e.g. Test1...Test3).

Kind regards,

Simon


"Max" wrote:

One way
With B1 containing the input number, eg: 2
In C1: =INDEX(A1:A3,MATCH(TRUE,INDEX((RIGHT(A1:A3)=B1&"") ,),0))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,500 Files:362 Subscribers:62
xdemechanik
---
"Simon Minder" wrote:
I have three cells with a value:

Cell Value
A1 Test1
A2 Test2
A3 Test3

I would like to have another cell where I can enter a value (e.g. 2) and
receive in an additional field the value (e.g. Test2).

How can I add to the formula (e.g. =A...) a variable from another field?

Kind regards,

Simon



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Combined formula

Got it: =INDIRECT("sheet name"&ADDRESS(G1;G2))

"Max" wrote:

One way
With B1 containing the input number, eg: 2
In C1: =INDEX(A1:A3,MATCH(TRUE,INDEX((RIGHT(A1:A3)=B1&"") ,),0))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,500 Files:362 Subscribers:62
xdemechanik
---
"Simon Minder" wrote:
I have three cells with a value:

Cell Value
A1 Test1
A2 Test2
A3 Test3

I would like to have another cell where I can enter a value (e.g. 2) and
receive in an additional field the value (e.g. Test2).

How can I add to the formula (e.g. =A...) a variable from another field?

Kind regards,

Simon



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
Decrease Decimal in a combined text/formula cell Ron Coderre Excel Worksheet Functions 0 November 29th 06 05:42 PM
Array formula combined with Lookup Kevin Gallagher Excel Discussion (Misc queries) 9 March 2nd 06 06:47 AM
I need to create an array formula combined with a countif Rochelle B Excel Worksheet Functions 5 October 25th 05 05:12 AM
How to od a combined IF and AND in a matrix formula murphyfilur Excel Worksheet Functions 3 May 28th 05 12:36 PM
Can you combined the SUMIF and SUBTOTAL functions in a formula? [email protected] Excel Worksheet Functions 1 April 22nd 05 04:05 AM


All times are GMT +1. The time now is 10:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"