Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Look up question from changing range with criteria

Hi,
Kind of a newbie to excel work, more familiar with access programming, but
got assigned a project.
I have an imported set of data on "import data" sheet. there is 8 columns
(always 8) and then the rows vary from day to day based on what is expected
to arrive in. In these rows the last field is called batch and the value can
range between 1 and 6.

I am linking all 8 columns to the main sheet "board" but there are
predefined areas of 12 rows allocated to each batch on this board. So static
linking to a set cell wont work because the data changes each day and some
times there is 10 batch 1 records and the next day there is only 8. Then the
links would be off and put batch 2 records in my batch 1 area.
How does one go about setting up code or using criteria to have it look for
batch 1 records and fill in the batch one area with out inserting blank
spaces until the criteria is met? Then move on to the batch 2 area and pull
all the batch 2 records out and put them in their 12 row area? etc...
Thanks in advance.

Steve
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Look up question from changing range with criteria

You have 4 different method to choose.

1) You can use formula in sheet one which are going to be long and
complicated. I don't like complicated formulas but some people do
2) Write a macro that imports the data and puts the data in the correct
locations on the Data Import sheet
3) Write a macro that moveds the data once it is imported
4) Don't link the data. Write a macro that puts the data into Board with no
links

I don't know if you import data comes from a workbook or is a text file.
VBA can open text files and read the data one row at a time and parse the
data into the correct locations in the workbook. Without seeing the workbook
layout I can't determine which is the best metho or the metho you prefer.


"Steve in MN" wrote:

Hi,
Kind of a newbie to excel work, more familiar with access programming, but
got assigned a project.
I have an imported set of data on "import data" sheet. there is 8 columns
(always 8) and then the rows vary from day to day based on what is expected
to arrive in. In these rows the last field is called batch and the value can
range between 1 and 6.

I am linking all 8 columns to the main sheet "board" but there are
predefined areas of 12 rows allocated to each batch on this board. So static
linking to a set cell wont work because the data changes each day and some
times there is 10 batch 1 records and the next day there is only 8. Then the
links would be off and put batch 2 records in my batch 1 area.
How does one go about setting up code or using criteria to have it look for
batch 1 records and fill in the batch one area with out inserting blank
spaces until the criteria is met? Then move on to the batch 2 area and pull
all the batch 2 records out and put them in their 12 row area? etc...
Thanks in advance.

Steve

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Look up question from changing range with criteria

Thanks for the response,

I need to know how to look up the information and fill it in the main sheet
based on the criteria of what batch it is in.

In the import sheet (which I am pulling the data from) it has data that is
pulled from a data base sorted by batch all in one group. The "Board" sheet
has set areas of 12 rows per batch group. The import sheet does not have
consistent size ranges so one day there may be 10 batch 1 rows and then batch
2 starts at row 11.
How do you write criteria to look up by batch and then fill onto the cells
with out having any empty ones?

"Joel" wrote:

You have 4 different method to choose.

1) You can use formula in sheet one which are going to be long and
complicated. I don't like complicated formulas but some people do
2) Write a macro that imports the data and puts the data in the correct
locations on the Data Import sheet
3) Write a macro that moveds the data once it is imported
4) Don't link the data. Write a macro that puts the data into Board with no
links

I don't know if you import data comes from a workbook or is a text file.
VBA can open text files and read the data one row at a time and parse the
data into the correct locations in the workbook. Without seeing the workbook
layout I can't determine which is the best metho or the metho you prefer.


"Steve in MN" wrote:

Hi,
Kind of a newbie to excel work, more familiar with access programming, but
got assigned a project.
I have an imported set of data on "import data" sheet. there is 8 columns
(always 8) and then the rows vary from day to day based on what is expected
to arrive in. In these rows the last field is called batch and the value can
range between 1 and 6.

I am linking all 8 columns to the main sheet "board" but there are
predefined areas of 12 rows allocated to each batch on this board. So static
linking to a set cell wont work because the data changes each day and some
times there is 10 batch 1 records and the next day there is only 8. Then the
links would be off and put batch 2 records in my batch 1 area.
How does one go about setting up code or using criteria to have it look for
batch 1 records and fill in the batch one area with out inserting blank
spaces until the criteria is met? Then move on to the batch 2 area and pull
all the batch 2 records out and put them in their 12 row area? etc...
Thanks in advance.

Steve

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
countif(Range,criteria) question David Excel Worksheet Functions 1 December 14th 09 12:18 PM
Query criteria based on a changing criteria list bwilk77 Excel Discussion (Misc queries) 2 May 27th 09 04:03 PM
sumif when criteria range is larger but includes criteria Joe1939 Excel Programming 1 January 16th 09 07:41 PM
Autofill 1 column with changing data and changing range cdclayton Excel Programming 0 August 5th 08 04:37 PM
=DMIN(database,field,criteria) question about criteria Dummy Excel Discussion (Misc queries) 2 April 16th 07 08:02 PM


All times are GMT +1. The time now is 07:00 PM.

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"