Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How do i return data in a cell from the referred cell?

ok i have used vlookup and its like

=VLOOKUP(B26,B2:AF23,B2:AF2,FALSE)

where B26 refers to a value and its ok

but Table_array shows an error that its referring to an empty cell when
that cell contains data not functions but data.. and i need it to show me the
data in that cell, but i dont know what to specify.. plz help

exactly i need to know an another value from the same row and when i looked
up help i founf vlookup does it but i cant do it..

i'll explain in detail,

i wish to see the max value from a row and then in another cell i wish to
see an another value from the column of the result of max value.

for eg: B26 has function =MAX(B23:AF23) and it results 1157 (1157 is on P23)
then in B27 i wish to see the data from column P2 from the same column of
the results of b26

so i input =VLOOKUP(B26,B2:AF23,B2:AF2,FALSE) in B27

hope am clear and am i using the right function to view the data from the
same column refering to B26
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default How do i return data in a cell from the referred cell?

Try this:

=INDEX(B2:AF2,MATCH(B26,B23:AF23,0))

--
Biff
Microsoft Excel MVP


"SunnyWantsome" wrote in message
...
ok i have used vlookup and its like

=VLOOKUP(B26,B2:AF23,B2:AF2,FALSE)

where B26 refers to a value and its ok

but Table_array shows an error that its referring to an empty cell when
that cell contains data not functions but data.. and i need it to show me
the
data in that cell, but i dont know what to specify.. plz help

exactly i need to know an another value from the same row and when i
looked
up help i founf vlookup does it but i cant do it..

i'll explain in detail,

i wish to see the max value from a row and then in another cell i wish to
see an another value from the column of the result of max value.

for eg: B26 has function =MAX(B23:AF23) and it results 1157 (1157 is on
P23)
then in B27 i wish to see the data from column P2 from the same column of
the results of b26

so i input =VLOOKUP(B26,B2:AF23,B2:AF2,FALSE) in B27

hope am clear and am i using the right function to view the data from the
same column refering to B26



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,510
Default How do i return data in a cell from the referred cell?

You have a couple of errors in the way you are interpreting the VLOOKUP
function.

VLOOKUP(lookup_value,table_array,col_index_num,ran ge_lookup)

lookup_value is the value you are looking for in table_array

table_array is the range which contains the data to be found. The data you
are looking for must be in the first column of this range. Also the range
should be in absolute format. That is the $ signs before the column and row
id's otherwise when you copy the formula down or across, the table_array
changes and this is not usually the case because it is in a fixed position.

col_index_num is the number of the column in the table_array which has the
value that you want to insert. It is a number such as 3 which is column 3 of
the array. On most occasions it would be the last column of the table_array
because there is no need to have this array wider than where the required
data is.

range_lookup is simply true or false. Using false will only find an exact
match and it is not necessary for the table_array to be sorted. Using true
will give the next largest value and the table_array must be sorted.

Example of the formula. A26 contains the value to lookup.

$B$2:$AF$23 is the table_array

31 is the column number in the table_array which has the data to insert.

false only an exact match.

=VLOOKUP(A26,$B$2:$AF$23,31,FALSE)

Regards,

OssieMac


"SunnyWantsome" wrote:

ok i have used vlookup and its like

=VLOOKUP(B26,B2:AF23,B2:AF2,FALSE)

where B26 refers to a value and its ok

but Table_array shows an error that its referring to an empty cell when
that cell contains data not functions but data.. and i need it to show me the
data in that cell, but i dont know what to specify.. plz help

exactly i need to know an another value from the same row and when i looked
up help i founf vlookup does it but i cant do it..

i'll explain in detail,

i wish to see the max value from a row and then in another cell i wish to
see an another value from the column of the result of max value.

for eg: B26 has function =MAX(B23:AF23) and it results 1157 (1157 is on P23)
then in B27 i wish to see the data from column P2 from the same column of
the results of b26

so i input =VLOOKUP(B26,B2:AF23,B2:AF2,FALSE) in B27

hope am clear and am i using the right function to view the data from the
same column refering to B26

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
Return a cell from more than just one row of data lindsayhyle Excel Discussion (Misc queries) 6 August 20th 07 06:50 PM
return a portion of data entered into a cell Brian Excel Discussion (Misc queries) 1 January 9th 07 03:46 AM
Conditional format but referred from other cell Lamb Chop Excel Discussion (Misc queries) 9 December 1st 06 08:07 PM
Return Data from Specified Cell Series Cheri Excel Discussion (Misc queries) 3 July 20th 06 03:51 AM
How do you make cell 2 return data if cell 1 contains text? jermsalerms Excel Discussion (Misc queries) 3 January 5th 06 10:44 PM


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