ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Using #s in column as column #s (https://www.excelbanter.com/excel-worksheet-functions/75302-using-s-column-column-s.html)

anon

Using #s in column as column #s
 
Assuming I have a column with #s, "1,5,7" can i get Excel to create a string
with the text from cells B1, B5, and B7?

Aladin Akyurek

Using #s in column as column #s
 
=B1&B5&B7

anon wrote:
Assuming I have a column with #s, "1,5,7" can i get Excel to create a string
with the text from cells B1, B5, and B7?


anon

Using #s in column as column #s
 
Aladin, you sort of missed my point, of course one can just put in B1&B5&B7,
but I want a function to do it because I have an entire column some cells may
have 1,5,7 others may be 3,4,13 or 1,21,16 etc. I want a function that will
take the numbers in the cell and call the same row #s. In other words, I
want the function to input B1&B5&B7 in the first cell, then B3&B4&B13 in the
next cell, that way I can just "drag" down to have it auto fill the rest of
the cells

"Aladin Akyurek" wrote:

=B1&B5&B7

anon wrote:
Assuming I have a column with #s, "1,5,7" can i get Excel to create a string
with the text from cells B1, B5, and B7?



Bob Phillips

Using #s in column as column #s
 
=INDIRECT("B"&A1)&INDIRECT("B"&A2)&INDIRECT("B"&A3 )

perhaps

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"anon" wrote in message
...
Aladin, you sort of missed my point, of course one can just put in

B1&B5&B7,
but I want a function to do it because I have an entire column some cells

may
have 1,5,7 others may be 3,4,13 or 1,21,16 etc. I want a function that

will
take the numbers in the cell and call the same row #s. In other words, I
want the function to input B1&B5&B7 in the first cell, then B3&B4&B13 in

the
next cell, that way I can just "drag" down to have it auto fill the rest

of
the cells

"Aladin Akyurek" wrote:

=B1&B5&B7

anon wrote:
Assuming I have a column with #s, "1,5,7" can i get Excel to create a

string
with the text from cells B1, B5, and B7?





Biff

Using #s in column as column #s
 
Hi!

You'd be much better off by putting each number in a separate cell:

C1 = 1
D1 = 5
E1 = 7

Then:

=CONCATENATE(INDIRECT("B"&C1),INDIRECT("B"&D1),IND IRECT("B"&E1))

Biff

"anon" wrote in message
...
Assuming I have a column with #s, "1,5,7" can i get Excel to create a
string
with the text from cells B1, B5, and B7?




anon

Using #s in column as column #s
 
Thanks

"Biff" wrote:

Hi!

You'd be much better off by putting each number in a separate cell:

C1 = 1
D1 = 5
E1 = 7

Then:

=CONCATENATE(INDIRECT("B"&C1),INDIRECT("B"&D1),IND IRECT("B"&E1))

Biff

"anon" wrote in message
...
Assuming I have a column with #s, "1,5,7" can i get Excel to create a
string
with the text from cells B1, B5, and B7?






All times are GMT +1. The time now is 12:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com