Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default How to search for a value in a column in another Excel file

I want to pick up data from another excel file "A" (worksheet) when I write a
value in Excel file (B) at specified cell, in this case a four digit number.
Let say that I search data for value "9999". In file "A" there is a row at
column A that contains "9999". Then I would like to add 3 different cell data
from same row as "9999" automatically.
In other words:
When I write "9999" in cell "B5" in file "B" search for value "9999" in
column A=9999 let us say that "9999" is in row A3 in file "A"
I want to import value "D3" to file "B" cell "B6"
I want to import value "E3" to file "B" cell "B7"
I want to import value "F3" to file "B" cell "B8"

Thanks for any ones help! The two files are in the same PC and same directory

  #2   Report Post  
Member
 
Location: Sweden
Posts: 30
Default

Well, you can accomplish this task using VLookUp
I think you are trying to get values from one work sheet to other as you have mentioned as file “A” (worksheet),,if so
Then,
1.select cell B6 in next worksheet, and enter following formula
=VLOOKUP(B5,Sheet1!A1:F3,2,FALSE)
2.select B7 and enter following formula
=VLOOKUP(B5,Sheet1!A1:F3,3,FALSE)
3.select cell B8 and enter following formula
=VLOOKUP(B5,Sheet1!A1:F3,4,FALSE)

If you are using different excel files then vlookup can be helpful in similar way as well….



Chris
------
Convert your Excel spreadsheet into an online calculator.
http://www.spreadsheetconverter.com
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default How to search for a value in a column in another Excel file

Enter this in B6 in File B (assuming Book3.xls is the name of the file A and
your data is in Sheet1)
=VLOOKUP($B$5,[Book3.xls]Sheet1!$A:$F,4,FALSE)

this in B7
=VLOOKUP($B$5,[Book3.xls]Sheet1!$A:$F,5,FALSE)

and this in B8
=VLOOKUP($B$5,[Book3.xls]Sheet1!$A:$F,6,FALSE)

It will give you #N/A if the value in B5 is not found in Col A of Book3.xls

"MSSailor" wrote:

I want to pick up data from another excel file "A" (worksheet) when I write a
value in Excel file (B) at specified cell, in this case a four digit number.
Let say that I search data for value "9999". In file "A" there is a row at
column A that contains "9999". Then I would like to add 3 different cell data
from same row as "9999" automatically.
In other words:
When I write "9999" in cell "B5" in file "B" search for value "9999" in
column A=9999 let us say that "9999" is in row A3 in file "A"
I want to import value "D3" to file "B" cell "B6"
I want to import value "E3" to file "B" cell "B7"
I want to import value "F3" to file "B" cell "B8"

Thanks for any ones help! The two files are in the same PC and same directory

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default How to search for a value in a column in another Excel file

What does the value "..$F,4,FALSE)" stand for?
Cell value B5 is "9999" for instance
I get that cell B6 is vlookup the value in cell b5 in xls file named
"book3.xls" sheet1 in column A. So far so good.
Now I want the value from same row as, in this case "9999" that exist in
column "D"


"Sheeloo" wrote:

Enter this in B6 in File B (assuming Book3.xls is the name of the file A and
your data is in Sheet1)
=VLOOKUP($B$5,[Book3.xls]Sheet1!$A:$F,4,FALSE)

this in B7
=VLOOKUP($B$5,[Book3.xls]Sheet1!$A:$F,5,FALSE)

and this in B8
=VLOOKUP($B$5,[Book3.xls]Sheet1!$A:$F,6,FALSE)

It will give you #N/A if the value in B5 is not found in Col A of Book3.xls

"MSSailor" wrote:

I want to pick up data from another excel file "A" (worksheet) when I write a
value in Excel file (B) at specified cell, in this case a four digit number.
Let say that I search data for value "9999". In file "A" there is a row at
column A that contains "9999". Then I would like to add 3 different cell data
from same row as "9999" automatically.
In other words:
When I write "9999" in cell "B5" in file "B" search for value "9999" in
column A=9999 let us say that "9999" is in row A3 in file "A"
I want to import value "D3" to file "B" cell "B6"
I want to import value "E3" to file "B" cell "B7"
I want to import value "F3" to file "B" cell "B8"

Thanks for any ones help! The two files are in the same PC and same directory

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default How to search for a value in a column in another Excel file

=VLOOKUP($B$5,[Book3.xls]Sheet1!$A:$F,4,FALSE)
The above means that take the value in B5, go to Sheet1 of Book3, look down
Column A.... When you find the value matching B5 move across 4 columns (Col
D) and pick the value and return it to the cell containing the formula...
FALSE means make an exact match.... If it was TRUE then neares match would
be found but then Col A has to be sorted in ascending order...

"MSSailor" wrote:

What does the value "..$F,4,FALSE)" stand for?
Cell value B5 is "9999" for instance
I get that cell B6 is vlookup the value in cell b5 in xls file named
"book3.xls" sheet1 in column A. So far so good.
Now I want the value from same row as, in this case "9999" that exist in
column "D"


"Sheeloo" wrote:

Enter this in B6 in File B (assuming Book3.xls is the name of the file A and
your data is in Sheet1)
=VLOOKUP($B$5,[Book3.xls]Sheet1!$A:$F,4,FALSE)

this in B7
=VLOOKUP($B$5,[Book3.xls]Sheet1!$A:$F,5,FALSE)

and this in B8
=VLOOKUP($B$5,[Book3.xls]Sheet1!$A:$F,6,FALSE)

It will give you #N/A if the value in B5 is not found in Col A of Book3.xls

"MSSailor" wrote:

I want to pick up data from another excel file "A" (worksheet) when I write a
value in Excel file (B) at specified cell, in this case a four digit number.
Let say that I search data for value "9999". In file "A" there is a row at
column A that contains "9999". Then I would like to add 3 different cell data
from same row as "9999" automatically.
In other words:
When I write "9999" in cell "B5" in file "B" search for value "9999" in
column A=9999 let us say that "9999" is in row A3 in file "A"
I want to import value "D3" to file "B" cell "B6"
I want to import value "E3" to file "B" cell "B7"
I want to import value "F3" to file "B" cell "B8"

Thanks for any ones help! The two files are in the same PC and same directory



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default How to search for a value in a column in another Excel file

Great what you tell me! I get " #NAME? " in my B6. How is the function in B6
executed.
Have made the "book3.xls" and column A in ascending order.

As I understand the "book3.xls" does not need to be open?

"Sheeloo" wrote:

=VLOOKUP($B$5,[Book3.xls]Sheet1!$A:$F,4,FALSE)
The above means that take the value in B5, go to Sheet1 of Book3, look down
Column A.... When you find the value matching B5 move across 4 columns (Col
D) and pick the value and return it to the cell containing the formula...
FALSE means make an exact match.... If it was TRUE then neares match would
be found but then Col A has to be sorted in ascending order...

"MSSailor" wrote:

What does the value "..$F,4,FALSE)" stand for?
Cell value B5 is "9999" for instance
I get that cell B6 is vlookup the value in cell b5 in xls file named
"book3.xls" sheet1 in column A. So far so good.
Now I want the value from same row as, in this case "9999" that exist in
column "D"


"Sheeloo" wrote:

Enter this in B6 in File B (assuming Book3.xls is the name of the file A and
your data is in Sheet1)
=VLOOKUP($B$5,[Book3.xls]Sheet1!$A:$F,4,FALSE)

this in B7
=VLOOKUP($B$5,[Book3.xls]Sheet1!$A:$F,5,FALSE)

and this in B8
=VLOOKUP($B$5,[Book3.xls]Sheet1!$A:$F,6,FALSE)

It will give you #N/A if the value in B5 is not found in Col A of Book3.xls

"MSSailor" wrote:

I want to pick up data from another excel file "A" (worksheet) when I write a
value in Excel file (B) at specified cell, in this case a four digit number.
Let say that I search data for value "9999". In file "A" there is a row at
column A that contains "9999". Then I would like to add 3 different cell data
from same row as "9999" automatically.
In other words:
When I write "9999" in cell "B5" in file "B" search for value "9999" in
column A=9999 let us say that "9999" is in row A3 in file "A"
I want to import value "D3" to file "B" cell "B6"
I want to import value "E3" to file "B" cell "B7"
I want to import value "F3" to file "B" cell "B8"

Thanks for any ones help! The two files are in the same PC and same directory

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default How to search for a value in a column in another Excel file

With FALSE in your VLOOKUP formula, you don't need to sort...
If you are getting #N/A then value in B5 is not found in Col A of
[Book3.xls]Sheet1

Book3 need not be open.

Format may be different...

"MSSailor" wrote:

Great what you tell me! I get " #NAME? " in my B6. How is the function in B6
executed.
Have made the "book3.xls" and column A in ascending order.

As I understand the "book3.xls" does not need to be open?

"Sheeloo" wrote:

=VLOOKUP($B$5,[Book3.xls]Sheet1!$A:$F,4,FALSE)
The above means that take the value in B5, go to Sheet1 of Book3, look down
Column A.... When you find the value matching B5 move across 4 columns (Col
D) and pick the value and return it to the cell containing the formula...
FALSE means make an exact match.... If it was TRUE then neares match would
be found but then Col A has to be sorted in ascending order...

"MSSailor" wrote:

What does the value "..$F,4,FALSE)" stand for?
Cell value B5 is "9999" for instance
I get that cell B6 is vlookup the value in cell b5 in xls file named
"book3.xls" sheet1 in column A. So far so good.
Now I want the value from same row as, in this case "9999" that exist in
column "D"


"Sheeloo" wrote:

Enter this in B6 in File B (assuming Book3.xls is the name of the file A and
your data is in Sheet1)
=VLOOKUP($B$5,[Book3.xls]Sheet1!$A:$F,4,FALSE)

this in B7
=VLOOKUP($B$5,[Book3.xls]Sheet1!$A:$F,5,FALSE)

and this in B8
=VLOOKUP($B$5,[Book3.xls]Sheet1!$A:$F,6,FALSE)

It will give you #N/A if the value in B5 is not found in Col A of Book3.xls

"MSSailor" wrote:

I want to pick up data from another excel file "A" (worksheet) when I write a
value in Excel file (B) at specified cell, in this case a four digit number.
Let say that I search data for value "9999". In file "A" there is a row at
column A that contains "9999". Then I would like to add 3 different cell data
from same row as "9999" automatically.
In other words:
When I write "9999" in cell "B5" in file "B" search for value "9999" in
column A=9999 let us say that "9999" is in row A3 in file "A"
I want to import value "D3" to file "B" cell "B6"
I want to import value "E3" to file "B" cell "B7"
I want to import value "F3" to file "B" cell "B8"

Thanks for any ones help! The two files are in the same PC and same directory

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
How to use one excel file to search another? [email protected] Excel Discussion (Misc queries) 0 June 21st 06 09:51 PM
how do i search an entire file for numbers in excel? terri Excel Discussion (Misc queries) 3 February 23rd 06 03:29 PM
how do i search for a specific name in an excel file cljenkins Excel Discussion (Misc queries) 4 December 29th 05 12:26 AM
dump file search results into excel Nadia Excel Discussion (Misc queries) 2 July 29th 05 02:43 AM
How do I search for an asterisk in an Excel file--it thinks the a. ace Excel Discussion (Misc queries) 3 December 9th 04 04:23 PM


All times are GMT +1. The time now is 05:56 AM.

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"