Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I would like to write an index function that takes its array from text
written in a1 in my spreadsheet. in a1 there is written a formula that results in: [M10 Liver Tx Paeds Leeds.xls]Jan'!$1:$65536, which is a reference to another spreadsheet stored on the server. I want to write my index function using this as the array, as follows: =index(left(a1,100),1,1) The left(a1,100) is just the best attempt I've had of getting it to print the data that will be used as the array...it didn't work though. Every time I try this I get a null value, and no matter what combination of substitute, left, right, text...etc I use I can't get it just to print the text as if I'd copied and pasted it...any ideas would really help |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() You could use SUMPRODUCT(--(TEXT( a good explanation can be found here http://www.xldynamic.com/source/xld.SUMPRODUCT.html exoticdisease;268310 Wrote: I would like to write an index function that takes its array from text written in a1 in my spreadsheet. in a1 there is written a formula that results in: [M10 Liver Tx Paeds Leeds.xls]Jan'!$1:$65536, which is a reference to another spreadsheet stored on the server. I want to write my index function using this as the array, as follows: =index(left(a1,100),1,1) The left(a1,100) is just the best attempt I've had of getting it to the data that will be used as the array...it didn't work though. Every time I try this I get a null value, and no matter what combination of substitute, left, right, text...etc I use I can't get it just to print the text as if I'd copied and pasted it...any ideas would really help -- Simon Lloyd Regards, Simon Lloyd 'The Code Cage' (http://www.thecodecage.com) ------------------------------------------------------------------------ Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1 View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=74867 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I've read the sumproduct explanation, but all that does is multiply values by
other values...ingeniously converting text to boolean number values I admit, but that's not much good for my problem, unless I'm missing something? Could you give me an example formula? "Simon Lloyd" wrote: You could use SUMPRODUCT(--(TEXT( a good explanation can be found here http://www.xldynamic.com/source/xld.SUMPRODUCT.html exoticdisease;268310 Wrote: I would like to write an index function that takes its array from text written in a1 in my spreadsheet. in a1 there is written a formula that results in: [M10 Liver Tx Paeds Leeds.xls]Jan'!$1:$65536, which is a reference to another spreadsheet stored on the server. I want to write my index function using this as the array, as follows: =index(left(a1,100),1,1) The left(a1,100) is just the best attempt I've had of getting it to the data that will be used as the array...it didn't work though. Every time I try this I get a null value, and no matter what combination of substitute, left, right, text...etc I use I can't get it just to print the text as if I'd copied and pasted it...any ideas would really help -- Simon Lloyd Regards, Simon Lloyd 'The Code Cage' (http://www.thecodecage.com) ------------------------------------------------------------------------ Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1 View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=74867 |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this:
=INDEX(INDIRECT(A1),1,1) Regards, Stefi €žexoticdisease€ť ezt Ă*rta: I would like to write an index function that takes its array from text written in a1 in my spreadsheet. in a1 there is written a formula that results in: [M10 Liver Tx Paeds Leeds.xls]Jan'!$1:$65536, which is a reference to another spreadsheet stored on the server. I want to write my index function using this as the array, as follows: =index(left(a1,100),1,1) The left(a1,100) is just the best attempt I've had of getting it to print the data that will be used as the array...it didn't work though. Every time I try this I get a null value, and no matter what combination of substitute, left, right, text...etc I use I can't get it just to print the text as if I'd copied and pasted it...any ideas would really help |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
The indirect function was pretty close and it started giving me values that I
wanted, but then bloody excel removed the "'" (apostrophe) character from the beginning of my text string which is to be used as a lookup function and it started giving me #REFs! Is there any way to stop excel removing the apostrophe symbol when it's the first character of a text string? |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I guess the problem is that apostrophe is NOT the first character of the
string but a sign for Excel to handle cell content as text despite cell format is NOT text. Maybe you could try to store stings in text formatted cells (in this way you can spare apostrophes), or to use TEXT(cellref),"@") instead of plain cellref in Lookups if you search text strings. Note! If you change cell format to text, it won't convert existing cell content to string, you have to convert it with Text function and copy back in the cell reformatted like text. Give examples if problem is still not solved, but I come back to them only Monday, I finished for today: Stefi €žexoticdisease€ť ezt Ă*rta: The indirect function was pretty close and it started giving me values that I wanted, but then bloody excel removed the "'" (apostrophe) character from the beginning of my text string which is to be used as a lookup function and it started giving me #REFs! Is there any way to stop excel removing the apostrophe symbol when it's the first character of a text string? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
index/match or vlookup or similar | Excel Worksheet Functions | |||
Help with Index / Match function | Excel Worksheet Functions | |||
index match array function-returning only first match, need last. | Excel Worksheet Functions | |||
Emulate Index/Match combo function w/ VBA custom function | Excel Worksheet Functions | |||
MATCH function - 2 columns w/ SIMILAR, not EXACT data | Excel Worksheet Functions |