Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 65
Default One sheet to get info from other.

Hi

I have a spreadsheet which shows a name in Column A.

The other columns are headed up with different dates in July.

Across the row, under the relevant date, appears the letter A or C or R.
This may appear several times across the row.

This shows which date that person will be able to perform a certain task.

On a separate sheet, I want to show the date of the night before, as that
person may need over-night accommodaiton in order to perform the task.

So, if Fred Smith is performing task R on July 4, 5 & 6, he may need
overnight accommodation on the nights of July 3, 4 & 5.

So Sheet 2 will need to look across that person's row on Sheet 1 for all
occurences of A, R or C; look up the date at the top of the column, then
return that date minus 1 however mnay times the A, C or R has appeared on
Sheet 1.

I hope this explains.

Can anyone offer a solution, please?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default One sheet to get info from other.

On May 2, 12:16 pm, bollard wrote:
Hi

I have a spreadsheet which shows a name in Column A.

The other columns are headed up with different dates in July.

Across the row, under the relevant date, appears the letter A or C or R.
This may appear several times across the row.

This shows which date that person will be able to perform a certain task.

On a separate sheet, I want to show the date of the night before, as that
person may need over-night accommodaiton in order to perform the task.

So, if Fred Smith is performing task R on July 4, 5 & 6, he may need
overnight accommodation on the nights of July 3, 4 & 5.

So Sheet 2 will need to look across that person's row on Sheet 1 for all
occurences of A, R or C; look up the date at the top of the column, then
return that date minus 1 however mnay times the A, C or R has appeared on
Sheet 1.

I hope this explains.

Can anyone offer a solution, please?


Assumptions:
In Sheet1, your table occupies cells:A1:AF10. Date headers in B1:AF1.
Names in A1:A10. A/C/R in B2:AF10.
In Sheet2, you enter a name in A1 and the labels A, C and R in B1:D1.

In Sheet2!B2:
=INDEX(Sheet1!$B$1:$AF$1,MATCH(B$1,INDEX(Sheet1!$B $1:$AF$10,MATCH($A
$1,Sheet1!$A$1:$A$10,0),0),0))-1
copy across until D2.

In Sheet2!B3 (this is an *array* formula, hence commit with Ctrl+Shift
+Enter):
=INDEX(Sheet1!$B$1:$AF$1,MATCH(1,(INDEX(Sheet1!$B$ 1:$AF$10,MATCH($A
$1,Sheet1!$A$1:$A$10,0),0)=B$1)*(COUNTIF(B$2:B2,Sh eet1!$B$1:$AF
$1-1)=0),0))-1
copy across and down.

This will produce three columns with the dates for each task as you
want them. After the list for each column is exhausted you will be
getting error values. You can perform conditional formatting in Sheet2!
B2:D10:

Select Sheet2!B2. Format | Conditional Formatting.
Choose Formula Is: =ISERROR(B2) (remove $$ that Excel might put in the
reference). Choose a white font.

HTH
Kostis Vezerides

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 65
Default One sheet to get info from other.

Hello

Thank you for what looks like a large piece of work!

One of your assumptions is not quite as I'd intended, though:

On Sheet 2, I wanted to enter just the name in A1 (same order as on Sheet 1)
and have the sheet fill in the various dates across B1,C1,D1 etc... Whether
the person is an A, C or R is not important, just the dates they need
accommodation. This could be anything from 0 days through to a maximum of 35
day in theory. I'm not sure how this will affect the formulas you've given me.

Thanks again.

"vezerid" wrote:

On May 2, 12:16 pm, bollard wrote:
Hi

I have a spreadsheet which shows a name in Column A.

The other columns are headed up with different dates in July.

Across the row, under the relevant date, appears the letter A or C or R.
This may appear several times across the row.

This shows which date that person will be able to perform a certain task.

On a separate sheet, I want to show the date of the night before, as that
person may need over-night accommodaiton in order to perform the task.

So, if Fred Smith is performing task R on July 4, 5 & 6, he may need
overnight accommodation on the nights of July 3, 4 & 5.

So Sheet 2 will need to look across that person's row on Sheet 1 for all
occurences of A, R or C; look up the date at the top of the column, then
return that date minus 1 however mnay times the A, C or R has appeared on
Sheet 1.

I hope this explains.

Can anyone offer a solution, please?


Assumptions:
In Sheet1, your table occupies cells:A1:AF10. Date headers in B1:AF1.
Names in A1:A10. A/C/R in B2:AF10.
In Sheet2, you enter a name in A1 and the labels A, C and R in B1:D1.

In Sheet2!B2:
=INDEX(Sheet1!$B$1:$AF$1,MATCH(B$1,INDEX(Sheet1!$B $1:$AF$10,MATCH($A
$1,Sheet1!$A$1:$A$10,0),0),0))-1
copy across until D2.

In Sheet2!B3 (this is an *array* formula, hence commit with Ctrl+Shift
+Enter):
=INDEX(Sheet1!$B$1:$AF$1,MATCH(1,(INDEX(Sheet1!$B$ 1:$AF$10,MATCH($A
$1,Sheet1!$A$1:$A$10,0),0)=B$1)*(COUNTIF(B$2:B2,Sh eet1!$B$1:$AF
$1-1)=0),0))-1
copy across and down.

This will produce three columns with the dates for each task as you
want them. After the list for each column is exhausted you will be
getting error values. You can perform conditional formatting in Sheet2!
B2:D10:

Select Sheet2!B2. Format | Conditional Formatting.
Choose Formula Is: =ISERROR(B2) (remove $$ that Excel might put in the
reference). Choose a white font.

HTH
Kostis Vezerides


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 65
Default One sheet to get info from other.

Hi again

I've also tried copying and pasting the formula which needs to go into
Sheet2!B2 and it throws up and error message. That's after I've altered the
bottom right co-ordinate from AF10 to AF52, which is the actual size of the
table in Sheet 1.

"vezerid" wrote:

On May 2, 12:16 pm, bollard wrote:
Hi

I have a spreadsheet which shows a name in Column A.

The other columns are headed up with different dates in July.

Across the row, under the relevant date, appears the letter A or C or R.
This may appear several times across the row.

This shows which date that person will be able to perform a certain task.

On a separate sheet, I want to show the date of the night before, as that
person may need over-night accommodaiton in order to perform the task.

So, if Fred Smith is performing task R on July 4, 5 & 6, he may need
overnight accommodation on the nights of July 3, 4 & 5.

So Sheet 2 will need to look across that person's row on Sheet 1 for all
occurences of A, R or C; look up the date at the top of the column, then
return that date minus 1 however mnay times the A, C or R has appeared on
Sheet 1.

I hope this explains.

Can anyone offer a solution, please?


Assumptions:
In Sheet1, your table occupies cells:A1:AF10. Date headers in B1:AF1.
Names in A1:A10. A/C/R in B2:AF10.
In Sheet2, you enter a name in A1 and the labels A, C and R in B1:D1.

In Sheet2!B2:
=INDEX(Sheet1!$B$1:$AF$1,MATCH(B$1,INDEX(Sheet1!$B $1:$AF$10,MATCH($A
$1,Sheet1!$A$1:$A$10,0),0),0))-1
copy across until D2.

In Sheet2!B3 (this is an *array* formula, hence commit with Ctrl+Shift
+Enter):
=INDEX(Sheet1!$B$1:$AF$1,MATCH(1,(INDEX(Sheet1!$B$ 1:$AF$10,MATCH($A
$1,Sheet1!$A$1:$A$10,0),0)=B$1)*(COUNTIF(B$2:B2,Sh eet1!$B$1:$AF
$1-1)=0),0))-1
copy across and down.

This will produce three columns with the dates for each task as you
want them. After the list for each column is exhausted you will be
getting error values. You can perform conditional formatting in Sheet2!
B2:D10:

Select Sheet2!B2. Format | Conditional Formatting.
Choose Formula Is: =ISERROR(B2) (remove $$ that Excel might put in the
reference). Choose a white font.

HTH
Kostis Vezerides


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default One sheet to get info from other.

On May 3, 5:41 pm, bollard wrote:
Hi again

I've also tried copying and pasting the formula which needs to go into
Sheet2!B2 and it throws up and error message. That's after I've altered the
bottom right co-ordinate from AF10 to AF52, which is the actual size of the
table in Sheet 1.

"vezerid" wrote:
On May 2, 12:16 pm, bollard wrote:
Hi


I have a spreadsheet which shows a name in Column A.


The other columns are headed up with different dates in July.


Across the row, under the relevant date, appears the letter A or C or R.
This may appear several times across the row.


This shows which date that person will be able to perform a certain task.


On a separate sheet, I want to show the date of the night before, as that
person may need over-night accommodaiton in order to perform the task.


So, if Fred Smith is performing task R on July 4, 5 & 6, he may need
overnight accommodation on the nights of July 3, 4 & 5.


So Sheet 2 will need to look across that person's row on Sheet 1 for all
occurences of A, R or C; look up the date at the top of the column, then
return that date minus 1 however mnay times the A, C or R has appeared on
Sheet 1.


I hope this explains.


Can anyone offer a solution, please?


Assumptions:
In Sheet1, your table occupies cells:A1:AF10. Date headers in B1:AF1.
Names in A1:A10. A/C/R in B2:AF10.
In Sheet2, you enter a name in A1 and the labels A, C and R in B1:D1.


In Sheet2!B2:
=INDEX(Sheet1!$B$1:$AF$1,MATCH(B$1,INDEX(Sheet1!$B $1:$AF$10,MATCH($A
$1,Sheet1!$A$1:$A$10,0),0),0))-1
copy across until D2.


In Sheet2!B3 (this is an *array* formula, hence commit with Ctrl+Shift
+Enter):
=INDEX(Sheet1!$B$1:$AF$1,MATCH(1,(INDEX(Sheet1!$B$ 1:$AF$10,MATCH($A
$1,Sheet1!$A$1:$A$10,0),0)=B$1)*(COUNTIF(B$2:B2,Sh eet1!$B$1:$AF
$1-1)=0),0))-1
copy across and down.


This will produce three columns with the dates for each task as you
want them. After the list for each column is exhausted you will be
getting error values. You can perform conditional formatting in Sheet2!
B2:D10:


Select Sheet2!B2. Format | Conditional Formatting.
Choose Formula Is: =ISERROR(B2) (remove $$ that Excel might put in the
reference). Choose a white font.


HTH
Kostis Vezerides


Hi, I just saw your message. I will reply tomorrow. Pr3esently I don't
even have the time to alter the formulas.

Regards,
Kostis



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
Finding Info from sheet 1 and removing only those rows from sheet Johnny B[_2_] Excel Discussion (Misc queries) 1 March 28th 07 02:29 PM
TAKING INFO FROM ONE SHEET AND PRODUCING A LIST IN ANOTHER SHEET Bob Excel Discussion (Misc queries) 0 December 20th 06 07:45 PM
input # on sheet 1, pulls all info for # from sheet 2 moochx5 Setting up and Configuration of Excel 1 July 19th 06 10:43 AM
How do I compare info in on sheet to info in another? Fanney Excel Discussion (Misc queries) 7 February 25th 06 02:16 AM
If Info. from one Sheet matches, send it to another sheet Slava Excel Discussion (Misc queries) 1 June 21st 05 06:36 PM


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