Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 94
Default Formulas to reference range based on data in column

I probably didn't title this too well.

I have a spreadsheet with 500 rows of data, sorted by the date in column A.
I want to extract certain data from rows that all start with the same
specified date.

Previously I used an IF formula but that necessitates having the formula in
500 rows which won't work for my purposes.

I'm going round incircles trying to think how best to achieve this.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Formulas to reference range based on data in column

If you apply a filter to the date column for the selected date you can
then just highlight the visible rows and copy/paste or cut/paste them
elsewhere (eg another sheet) to extract them.

Hope this helps.

Pete

On Mar 10, 9:08*am, Code Numpty
wrote:
I probably didn't title this too well.

I have a spreadsheet with 500 rows of data, sorted by the date in column A.
I want to extract certain data from rows that all start with the same
specified date.

Previously I used an IF formula but that necessitates having the formula in
500 rows which won't work for my purposes.

I'm going round incircles trying to think how best to achieve this.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 94
Default Formulas to reference range based on data in column


I knew I didn't word it well.

Information is often being added or changed in the original sheet but it is
always sorted back into date order on save.

What I need is for the extracted data to appear automatically in the other
sheet and always be up to date.



"Pete_UK" wrote:

If you apply a filter to the date column for the selected date you can
then just highlight the visible rows and copy/paste or cut/paste them
elsewhere (eg another sheet) to extract them.

Hope this helps.

Pete

On Mar 10, 9:08 am, Code Numpty
wrote:
I probably didn't title this too well.

I have a spreadsheet with 500 rows of data, sorted by the date in column A.
I want to extract certain data from rows that all start with the same
specified date.

Previously I used an IF formula but that necessitates having the formula in
500 rows which won't work for my purposes.

I'm going round incircles trying to think how best to achieve this.


.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Formulas to reference range based on data in column

Well, give us some details. What data do you have in your original
sheet? Where are the dates, and do these increase each day? Do you
have several entries for each date? What exactly do you want to
extract? etc. etc.

Pete

On Mar 10, 12:25*pm, Code Numpty
wrote:
I knew I didn't word it well.

Information is often being added or changed in the original sheet but it is
always sorted back into date order on save.

What I need is for the extracted data to appear automatically in the other
sheet and always be up to date.



"Pete_UK" wrote:
If you apply a filter to the date column for the selected date you can
then just highlight the visible rows and copy/paste or cut/paste them
elsewhere (eg another sheet) to extract them.


Hope this helps.


Pete


On Mar 10, 9:08 am, Code Numpty
wrote:
I probably didn't title this too well.


I have a spreadsheet with 500 rows of data, sorted by the date in column A.
I want to extract certain data from rows that all start with the same
specified date.


Previously I used an IF formula but that necessitates having the formula in
500 rows which won't work for my purposes.


I'm going round incircles trying to think how best to achieve this.


.- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 94
Default Formulas to reference range based on data in column

Original sheet contains dates, names, numbers and notes. Dates often change
and new dates are added. Older dates are regularly deleted. Sheets are
automatically sorted by date on save.

Example Data (with header row, column letters in brackets)

In (A) day (B) Out (C) day (D) Pen (E) Cat/s (F) Last Name (G) Tel No
(H) Arrival Notes (I) Collection Notes (J) Days (K) Rate (L) Deposit
(M) Total £ (N)
15/3/10 Mon 1/4/10 Thu 25 Flossy Nelson 012345 6793 18 £6.15 110.70
18/3/10 Thu 3/4/10 Sat 11 Izzy Prosser 012345 6794 17 £6.15 104.55
1/4/10 Thu 6/4/10 Tue 4 Jasper Davies 012345 6795 6 £6.15 36.90
1/4/10 Thu 6/4/10 Tue 6 Dusty & Smudge Catchpole 012345 6790 6 £9.50 57.00
1/4/10 Thu 6/4/10 Tue 22 Batman & Robin King 012345 6792 6 £9.50 57.00
1/4/10 Thu 6/4/10 Tue 26 Muffin Tristram 012345 6793 New Customer, sign
Card PAID 6 £6.15 24.60 12.30
3/4/10 Sat 6/4/10 Tue 21 Smudge & Ginger Smith 012345 6791 4 £9.50 38.00


In another workbook I want to pull in certain data based on the date in
column A.

In one section e.g. (all based on the same date in column A)

Pen (E) Cat/s (F) Last Name (G) Out (C) day (D) Arrival Notes (I)

Example data

Pen (E) Cat/s (F) Last Name (G) Out (C) day (D) Arrival Notes (I)
4 Jasper Davies 6/4/10 Tue
6 Dusty & Smudge Catchpole 6/4/10 Tue
22 Batman & Robin King 6/4/10 Tue
26 Muffin Tristram 6/4/10 Tue New Customer, sign Card

I want this workbook to update so that the data is always current, taking
into account changed dates and dates that have been added. I will always be
looking for data for a single date only.

I hope this is a little clearer.

Sharon

"Pete_UK" wrote:

Well, give us some details. What data do you have in your original
sheet? Where are the dates, and do these increase each day? Do you
have several entries for each date? What exactly do you want to
extract? etc. etc.

Pete

On Mar 10, 12:25 pm, Code Numpty
wrote:
I knew I didn't word it well.

Information is often being added or changed in the original sheet but it is
always sorted back into date order on save.

What I need is for the extracted data to appear automatically in the other
sheet and always be up to date.



"Pete_UK" wrote:
If you apply a filter to the date column for the selected date you can
then just highlight the visible rows and copy/paste or cut/paste them
elsewhere (eg another sheet) to extract them.


Hope this helps.


Pete


On Mar 10, 9:08 am, Code Numpty
wrote:
I probably didn't title this too well.


I have a spreadsheet with 500 rows of data, sorted by the date in column A.
I want to extract certain data from rows that all start with the same
specified date.


Previously I used an IF formula but that necessitates having the formula in
500 rows which won't work for my purposes.


I'm going round incircles trying to think how best to achieve this.


.- Hide quoted text -


- Show quoted text -


.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Formulas to reference range based on data in column

Okay, Sharon, it looks like column O is free in your data sheet, so
put "Seq" in O1 and this formula in O2:

=IF(A2="","-",A2&"_"&COUNTIF(A$1:A2,A2))

and copy this down beyond your data. It will give a sequential number
after the date serial number.

Then assuming you put your date of interest in H1 of the second sheet,
then in H2 you can put this formula:

=IF(ISNA(MATCH(H$1&"_"&ROW(A1),data!O:O,0)),"",MAT CH(H
$1&"_"&ROW(A1),data!O:O,0))

Copy this down as far as you think you will need it (i.e. to cover the
maximum number of entries that you are likely to have on any one day,
eg to row 20). Then you can put your headings in A1: F1, and you can
have a formula like this in A2:

=IF($H2="","",INDEX(data(E:E),$H2))

This will bring the matching data from column E of the data sheet. A
similar formula in B2:

=IF($H2="","",INDEX(data(F:F),$H2))

will bring data from column F of the data sheet. Just set up similar
formulae in C2:F2 to suit the data you want to bring across, changing
the F:F to the appropriate column. Format these cells as appropriate
(eg dates), then copy the formulae down to row 20.

Now, you can just change the date in H1 to see the data change.

If you delete or add any rows in the data sheet, you will need to copy
the formula in column O to ensure it covers the data that you have.

Hope this helps.

Pete

On Mar 10, 4:21*pm, Code Numpty
wrote:
Original sheet contains dates, names, numbers and notes. Dates often change
and new dates are added. Older dates are regularly deleted. Sheets are
automatically sorted by date on save.

Example Data (with header row, column letters in brackets)

In (A) *day (B) Out (C) day (D) Pen (E) Cat/s (F) * * * Last Name (G) * Tel No
(H) * * Arrival Notes (I) * * * Collection Notes (J) * *Days (K) * * * *Rate (L) * * * *Deposit
(M) * * Total £ (N)
15/3/10 Mon * * 1/4/10 *Thu * * 25 * * *Flossy *Nelson *012345 6793 * * * * * * * * * * 18 * * *£6.15 * * * * *110.70
18/3/10 Thu * * 3/4/10 *Sat * * 11 * * *Izzy * *Prosser 012345 6794 * * * * * * * * * * 17 * * *£6.15 * * * * *104.55
1/4/10 *Thu * * 6/4/10 *Tue * * 4 * * * Jasper *Davies *012345 6795 * * * * * * * * * * 6 * * * £6..15 * * * * *36.90
1/4/10 *Thu * * 6/4/10 *Tue * * 6 * * * Dusty & Smudge * * *Catchpole * * * 012345 6790 * * * * * * * * * * 6 * * * £9.50 * * * * *57.00
1/4/10 *Thu * * 6/4/10 *Tue * * 22 * * *Batman & Robin * * *King * *012345 6792 * * * * * * * * * * 6 * * * £9.50 * * * * *57.00
1/4/10 *Thu * * 6/4/10 *Tue * * 26 * * *Muffin *Tristram * * * *012345 6793 * * New Customer, sign
Card * *PAID * *6 * * * £6.15 *24.60 * 12.30
3/4/10 *Sat * * 6/4/10 *Tue * * 21 * * *Smudge & Ginger * * Smith * 012345 6791 * * * * * * * * * * 4 * * * £9.50 * * * * *38.00

In another workbook I want to pull in certain data based on the date in
column A.

In one section e.g. (all based on the same date in column A)

Pen (E) Cat/s (F) * * * Last Name (G) * Out (C) day (D) Arrival Notes (I)

Example data

Pen (E) Cat/s (F) * * * Last Name (G) * Out (C) day (D) Arrival Notes (I)
4 * * * Jasper *Davies *6/4/10 *Tue * *
6 * * * Dusty & Smudge * * *Catchpole * * * 6/4/10 *Tue * *
22 * * *Batman & Robin * * *King * *6/4/10 *Tue * *
26 * * *Muffin *Tristram * * * *6/4/10 *Tue * * New Customer, sign Card

I want this workbook to update so that the data is always current, taking
into account changed dates and dates that have been added. I will always be
looking for data for a single date only.

I hope this is a little clearer.

Sharon



"Pete_UK" wrote:
Well, give us some details. What data do you have in your original
sheet? Where are the dates, and do these increase each day? Do you
have several entries for each date? What exactly do you want to
extract? etc. etc.


Pete


On Mar 10, 12:25 pm, Code Numpty
wrote:
I knew I didn't word it well.


Information is often being added or changed in the original sheet but it is
always sorted back into date order on save.


What I need is for the extracted data to appear automatically in the other
sheet and always be up to date.


"Pete_UK" wrote:
If you apply a filter to the date column for the selected date you can
then just highlight the visible rows and copy/paste or cut/paste them
elsewhere (eg another sheet) to extract them.


Hope this helps.


Pete


On Mar 10, 9:08 am, Code Numpty
wrote:
I probably didn't title this too well.


I have a spreadsheet with 500 rows of data, sorted by the date in column A.
I want to extract certain data from rows that all start with the same
specified date.


Previously I used an IF formula but that necessitates having the formula in
500 rows which won't work for my purposes.


I'm going round incircles trying to think how best to achieve this.


.- Hide quoted text -


- Show quoted text -


.- Hide quoted text -


- Show quoted text -


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Formulas to reference range based on data in column

You may also consider using the Pivot Table tool if you have Excel 2007.
Sorting and analyzing data with this tool is a whiz.

e-Learning

"Code Numpty" wrote:

I probably didn't title this too well.

I have a spreadsheet with 500 rows of data, sorted by the date in column A.
I want to extract certain data from rows that all start with the same
specified date.

Previously I used an IF formula but that necessitates having the formula in
500 rows which won't work for my purposes.

I'm going round incircles trying to think how best to achieve this.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 94
Default Formulas to reference range based on data in column

Thanks, I'll try and remember to look at this when I do move to 2007.

"e-Learning" wrote:

You may also consider using the Pivot Table tool if you have Excel 2007.
Sorting and analyzing data with this tool is a whiz.

e-Learning

"Code Numpty" wrote:

I probably didn't title this too well.

I have a spreadsheet with 500 rows of data, sorted by the date in column A.
I want to extract certain data from rows that all start with the same
specified date.

Previously I used an IF formula but that necessitates having the formula in
500 rows which won't work for my purposes.

I'm going round incircles trying to think how best to achieve this.

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
MS Excel - changing reference column value based on another column Dharmesh Patel[_2_] Excel Discussion (Misc queries) 2 October 12th 09 01:19 PM
Excel - changing column reference based on value of other column Dharmesh Patel Excel Discussion (Misc queries) 2 October 12th 09 01:18 PM
Sort a range of data based on another column RobM Excel Discussion (Misc queries) 1 July 13th 07 05:36 AM
Reference Data Range based on cell contents PCLIVE Charts and Charting in Excel 0 February 27th 06 03:01 PM
Can you average data in 1 column based on a range of values in another? kman24 Excel Worksheet Functions 2 November 17th 04 02:09 PM


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