Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 5
Default How to read data from the workbook selectively?

Hi,

It's been interesting to me on how to read data selectively from the other workbook. Rather than pull all data, I just want to read values of 10 cells: the 1st cell has a unique name "ID code", and from this cell downward to the 10th cell.

Though this seems to be easy, I cannot get this work. Any one can make an example to solve this interesting one?
  #2   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by AliceJ View Post
Hi,

It's been interesting to me on how to read data selectively from the other workbook. Rather than pull all data, I just want to read values of 10 cells: the 1st cell has a unique name "ID code", and from this cell downward to the 10th cell.

Though this seems to be easy, I cannot get this work. Any one can make an example to solve this interesting one?
Hi AliceJ,

Could you provide an example workbook so we can see exactly what you're trying to acheive?

Thanks.

S.
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default How to read data from the workbook selectively?

Hi Alice,

Am Wed, 16 Jan 2013 12:54:00 +0000 schrieb AliceJ:

It's been interesting to me on how to read data selectively from the
other workbook. Rather than pull all data, I just want to read values of
10 cells: the 1st cell has a unique name "ID code", and from this cell
downward to the 10th cell.


open the other workbook too.
In new workbook in first cell:
=OldWorkbookName.xlsl!ID_code
In second cell:
=IF( ROW(A1)<10,OFFSET(OldWorkbookName.xlsm!ID_code,ROW (A1),),"")
and copy down to the 10. row
Close the old workbook and the path will be updatet automatically.


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default How to read data from the workbook selectively?

Hi Alice,

Am Wed, 16 Jan 2013 15:59:45 +0100 schrieb Claus Busch:

=OldWorkbookName.xlsl!ID_code

......................................^^^^^^

=OldWorkbookName.xlsx!ID_code

=IF( ROW(A1)<10,OFFSET(OldWorkbookName.xlsm!ID_code,ROW (A1),),"")

.................................................. .....................................^^^^^^^^
=IF( ROW(A1)<10,OFFSET(OldWorkbookName.xlsx!ID_code,ROW (A1),),"")


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default How to read data from the workbook selectively?

Hi Alice,

Am Wed, 16 Jan 2013 15:59:45 +0100 schrieb Claus Busch:

=IF( ROW(A1)<10,OFFSET(OldWorkbookName.xlsm!ID_code,ROW (A1),),"")


you better work with cell references. With OFFSET or INDIRECT you have
to open the old Workbook to get the formula to work.
if ID_code is in A1
In your first cell:
=OldWorkbookName.xlsx!A1
and copy down 10 cells


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2


  #6   Report Post  
Junior Member
 
Posts: 5
Smile

Quote:
Originally Posted by Spencer101 View Post
Hi AliceJ,

Could you provide an example workbook so we can see exactly what you're trying to acheive?

Thanks.

S.

Hi Sir, I just attached the file here. As an example,

I have a worksheet A, and I also have a workbook B.

I want to find a unique text string, called "ID code" in file A!Sheet1.

Let us assume it is found in cell J21 on the tab A!Sheet1, then I want that the cells J21 through J30 should be copied and pasted in sheet 1 of file B, in cells say A1 through A10.

So, the following are specified:

1.The text string "ID code" to be searched for;

2.The number of target cells to be copied to B!Sheet
Attached Files
File Type: zip Example.zip (10.4 KB, 32 views)
  #7   Report Post  
Junior Member
 
Posts: 5
Unhappy

Can you please help?
  #8   Report Post  
Junior Member
 
Posts: 5
Default

Quote:
Originally Posted by Claus Busch View Post
Hi Alice,

Am Wed, 16 Jan 2013 15:59:45 +0100 schrieb Claus Busch:

=IF( ROW(A1)<10,OFFSET(OldWorkbookName.xlsm!ID_code,ROW (A1),),"")


you better work with cell references. With OFFSET or INDIRECT you have
to open the old Workbook to get the formula to work.
if ID_code is in A1
In your first cell:
=OldWorkbookName.xlsx!A1
and copy down 10 cells


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2

The trouble is we don't know where is 'ID Code' located. So it is not as simple as that :(

Alice
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
Selectively Moving Data to a Summary Sheet John Yab Excel Programming 16 October 25th 09 01:09 AM
Read data from workbook without showing it? Gustaf Excel Programming 7 September 28th 09 03:06 PM
Import data selectively from a CSV larger than 65000 rows [email protected] Excel Discussion (Misc queries) 2 August 1st 06 12:02 AM
How do I selectively import data from another Excel worksheet? Emmanuel Excel Discussion (Misc queries) 1 May 9th 05 06:09 PM
Help w/ selectively combining data olasa Excel Worksheet Functions 0 March 19th 05 10:56 PM


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

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"