Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 921
Default Can you create a new array based on the value in a column?

I am pulling data in from an external data source (sharepoint list) the data
is updated and new rows are added daily.

One of the columns is a milestone value.

Is it possible to take the raw data from the import and automatically have
the data broken into arrays based on the value in the milestone?

I have to report on this every week and I am looking for a way to automate
the process.

Thanks

Jeff


--
Jeff
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 622
Default Can you create a new array based on the value in a column?

On May 5, 7:24 pm, Jeff wrote:
I am pulling data in from an external data source (sharepoint list) the data
is updated and new rows are added daily.

One of the columns is a milestone value.

Is it possible to take the raw data from the import and automatically have
the data broken into arrays based on the value in the milestone?

I have to report on this every week and I am looking for a way to automate
the process.

Thanks

Jeff

--
Jeff


So...you want the array's length to be determined by the number in a
cell? Should be easy to do with an OFFSET function, unless that won't
work within an array function. Something like this, which will sum
column A for as many rows as the number in B1:
=SUM(A1:OFFSET(A1,B1-1,))
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 921
Default Can you create a new array based on the value in a column?

Don't think that is quite it.

I want to transfer the contents of a whole row to a row in a new spreadsheet
if it matches the criteria.

as I update the report I would expect things to move between milestones and
this would be reflected in the new array, one time it would have 10 rows the
next 12. is that a better explanation?
--
Jeff


"Spiky" wrote:

On May 5, 7:24 pm, Jeff wrote:
I am pulling data in from an external data source (sharepoint list) the data
is updated and new rows are added daily.

One of the columns is a milestone value.

Is it possible to take the raw data from the import and automatically have
the data broken into arrays based on the value in the milestone?

I have to report on this every week and I am looking for a way to automate
the process.

Thanks

Jeff

--
Jeff


So...you want the array's length to be determined by the number in a
cell? Should be easy to do with an OFFSET function, unless that won't
work within an array function. Something like this, which will sum
column A for as many rows as the number in B1:
=SUM(A1:OFFSET(A1,B1-1,))

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 622
Default Can you create a new array based on the value in a column?

On May 6, 12:13 pm, Jeff wrote:
Don't think that is quite it.

I want to transfer the contents of a whole row to a row in a new spreadsheet
if it matches the criteria.

as I update the report I would expect things to move between milestones and
this would be reflected in the new array, one time it would have 10 rows the
next 12. is that a better explanation?
--
Jeff

"Spiky" wrote:
On May 5, 7:24 pm, Jeff wrote:
I am pulling data in from an external data source (sharepoint list) the data
is updated and new rows are added daily.


One of the columns is a milestone value.


Is it possible to take the raw data from the import and automatically have
the data broken into arrays based on the value in the milestone?


I have to report on this every week and I am looking for a way to automate
the process.


Thanks


Jeff


--
Jeff


So...you want the array's length to be determined by the number in a
cell? Should be easy to do with an OFFSET function, unless that won't
work within an array function. Something like this, which will sum
column A for as many rows as the number in B1:
=SUM(A1:OFFSET(A1,B1-1,))


Ah.

When I had to do something like this, I used VBA to do an Advanced
Filter. Not sure if it works across workbooks this way, I would think
so. I couldn't find a way to make functions automatically transfer
varying amounts of data to another sheet. Sounds like you could Filter
on your milestone column, perhaps.

I set it to clear my destination first, then Filter the data based on
user input somewhere else. The worst part of using Filter is that you
have to set up Criteria. Code is something like this:

Sheets("Sheet 1").Range("A7:d75").ClearContents
Sheets("Sheet 2").Range("Account_db").AdvancedFilter
Action:=xlFilterCopy, CriteriaRange:=Sheets _ ("Sheet
3").Range("Aa1:aa2"), CopyToRange:=Worksheets("Sheet 1").Range("a7"),
_ Unique:=False


Then, in the destination sheet, I reference this area to do other
things. I simply made the area several rows longer than any result
would be so that I wouldn't have space issues. So if you are always
pulling 10-15 rows, for instance, leave space for 20.

You might be able to do this with functions, depends. Mine was a mix
of values and text, so some functions wouldn't work properly, anyway.
Filter always works, and it leaves no extra formulas laying around.
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
Create 2 sheets, from one, based upon value of one column NickR2 Excel Worksheet Functions 5 December 26th 07 01:03 PM
Create Code Based on Column Brainfire Excel Discussion (Misc queries) 2 June 8th 07 01:04 PM
CREATE NEW WORKBOOK AND SHEETS BASED ON COLUMN DATA control freak Excel Worksheet Functions 2 July 20th 06 06:00 PM
how to create a chart based on the content of a column yefei Excel Discussion (Misc queries) 1 February 23rd 06 06:27 AM
An array and countif based on criteria in each column Rochelle B Excel Worksheet Functions 1 October 25th 05 05:08 AM


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