Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ellie
 
Posts: n/a
Default Formula array adaptation

I am currently using a formula array, kindly provided by Paul Sheppard, as
follows:-

{=SUM((Sheet1!$B$2:$B$9=Sheet2!A2)*(Sheet1!$C$2:$C $9<""))}

This array basically provides me with the number of entries with a specific
date in Column B and then how many actually include something other than no
issues in Column C from one sheet in a workbook and populates the appropriate
cell in another sheet in the same workbook.

As the 2nd sheet is only permitted to show 5 dates, albeit the 5th date of
each week (example below shows 16/9) is to include the Saturday and Sunday
dates (17&18/9) within it, could anyone help me in being able to adapt the
above array to encapsulate the additional Saturday and Sunday data under the
Friday data.

e.g. of 2nd sheet as below:

W/C 12/09 Total Loads Total Cases Failure Loads Failure Cases
12-Sep
13-Sep
14-Sep
15-Sep
16-Sep
TOTAL 0 0 0 0

Many thanks.

Ellie


  #2   Report Post  
bj
 
Posts: n/a
Default

try
{=SUM((Sheet1!$B$2:$B$9=Sheet2!A2)*(Sheet1!$C$2:$C $9<""))+if(weekday(sheet2!A2)=5,SUM((Sheet1!$B$2: $B$9=Sheet2!A2+1)*(Sheet1!$C$2:$C$9<""))+SUM((She et1!$B$2:$B$9=Sheet2!A2+2)*(Sheet1!$C$2:$C$9<"")) ,0)}

"Ellie" wrote:

I am currently using a formula array, kindly provided by Paul Sheppard, as
follows:-

{=SUM((Sheet1!$B$2:$B$9=Sheet2!A2)*(Sheet1!$C$2:$C $9<""))}

This array basically provides me with the number of entries with a specific
date in Column B and then how many actually include something other than no
issues in Column C from one sheet in a workbook and populates the appropriate
cell in another sheet in the same workbook.

As the 2nd sheet is only permitted to show 5 dates, albeit the 5th date of
each week (example below shows 16/9) is to include the Saturday and Sunday
dates (17&18/9) within it, could anyone help me in being able to adapt the
above array to encapsulate the additional Saturday and Sunday data under the
Friday data.

e.g. of 2nd sheet as below:

W/C 12/09 Total Loads Total Cases Failure Loads Failure Cases
12-Sep
13-Sep
14-Sep
15-Sep
16-Sep
TOTAL 0 0 0 0

Many thanks.

Ellie


  #3   Report Post  
Ellie
 
Posts: n/a
Default

Thanks bj. but unfortunately having entered this formula array, when testing
by changing sheet 1 17/9 from no issues to an issue, this showed up on sheet
2 under 15/9.

Any help would be appreciated, but have double and triple checked my entries
and is as you have below.

Ellie

"bj" wrote:

try
{=SUM((Sheet1!$B$2:$B$9=Sheet2!A2)*(Sheet1!$C$2:$C $9<""))+if(weekday(sheet2!A2)=5,SUM((Sheet1!$B$2: $B$9=Sheet2!A2+1)*(Sheet1!$C$2:$C$9<""))+SUM((She et1!$B$2:$B$9=Sheet2!A2+2)*(Sheet1!$C$2:$C$9<"")) ,0)}

"Ellie" wrote:

I am currently using a formula array, kindly provided by Paul Sheppard, as
follows:-

{=SUM((Sheet1!$B$2:$B$9=Sheet2!A2)*(Sheet1!$C$2:$C $9<""))}

This array basically provides me with the number of entries with a specific
date in Column B and then how many actually include something other than no
issues in Column C from one sheet in a workbook and populates the appropriate
cell in another sheet in the same workbook.

As the 2nd sheet is only permitted to show 5 dates, albeit the 5th date of
each week (example below shows 16/9) is to include the Saturday and Sunday
dates (17&18/9) within it, could anyone help me in being able to adapt the
above array to encapsulate the additional Saturday and Sunday data under the
Friday data.

e.g. of 2nd sheet as below:

W/C 12/09 Total Loads Total Cases Failure Loads Failure Cases
12-Sep
13-Sep
14-Sep
15-Sep
16-Sep
TOTAL 0 0 0 0

Many thanks.

Ellie


  #4   Report Post  
bj
 
Posts: n/a
Default

that is because I screwed up
change the
<""))+if(weekday(sheet2!A2)=5,SUM
to
<""))+if(weekday(sheet2!A2)=6,SUM

Friday is 6 not 5 in Weekday


"Ellie" wrote:

Thanks bj. but unfortunately having entered this formula array, when testing
by changing sheet 1 17/9 from no issues to an issue, this showed up on sheet
2 under 15/9.

Any help would be appreciated, but have double and triple checked my entries
and is as you have below.

Ellie

"bj" wrote:

try
{=SUM((Sheet1!$B$2:$B$9=Sheet2!A2)*(Sheet1!$C$2:$C $9<""))+if(weekday(sheet2!A2)=5,SUM((Sheet1!$B$2: $B$9=Sheet2!A2+1)*(Sheet1!$C$2:$C$9<""))+SUM((She et1!$B$2:$B$9=Sheet2!A2+2)*(Sheet1!$C$2:$C$9<"")) ,0)}

"Ellie" wrote:

I am currently using a formula array, kindly provided by Paul Sheppard, as
follows:-

{=SUM((Sheet1!$B$2:$B$9=Sheet2!A2)*(Sheet1!$C$2:$C $9<""))}

This array basically provides me with the number of entries with a specific
date in Column B and then how many actually include something other than no
issues in Column C from one sheet in a workbook and populates the appropriate
cell in another sheet in the same workbook.

As the 2nd sheet is only permitted to show 5 dates, albeit the 5th date of
each week (example below shows 16/9) is to include the Saturday and Sunday
dates (17&18/9) within it, could anyone help me in being able to adapt the
above array to encapsulate the additional Saturday and Sunday data under the
Friday data.

e.g. of 2nd sheet as below:

W/C 12/09 Total Loads Total Cases Failure Loads Failure Cases
12-Sep
13-Sep
14-Sep
15-Sep
16-Sep
TOTAL 0 0 0 0

Many thanks.

Ellie


  #5   Report Post  
Ellie
 
Posts: n/a
Default




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
array formula Jonathan Cooper Excel Discussion (Misc queries) 4 September 9th 05 12:27 PM
referencing the value of a cell containing an array formula KR Excel Worksheet Functions 4 July 5th 05 06:15 PM
problem with Array Formula OrdOff Excel Worksheet Functions 2 June 30th 05 04:57 PM
Trouble shooting#NA error in Array formula RonR Excel Discussion (Misc queries) 2 June 14th 05 09:58 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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