ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   any possible way to generate a formula to get the same result (https://www.excelbanter.com/excel-discussion-misc-queries/36304-any-possible-way-generate-formula-get-same-result.html)

ciccia

any possible way to generate a formula to get the same result
 
Sheet 1:
L M Q (=2/14/2005) R(=3/25/2005)
Date 1 Date 2
6/9/2005
6/8/2005 6/14/2005
3/15/2005 3/29/2005
4/22/2005 4/27/2005

Sheet2:
A B
2/14/2005
3/25/2005

I generated the data in the Q Column:
=IF(OR(ISTEXT(L2),ISBLANK(L2)),"",IF(OR($M2'Sheet 2'!$A2+1,ISBLANK($M2)),NETWORKDAYS('Sheet2'!$A$2,$ L2),""))

Then I do:
=AVERAGE('Sheet1'!Q2:Q140)

Is there anyway that I can combine two formula into one to display in column
B without generating Q, R Column and so on?

Thanks



Earl Kiosterud

This is posted in other groups.

"ciccia" wrote in message
...
Sheet 1:
L M Q (=2/14/2005) R(=3/25/2005)
Date 1 Date 2
6/9/2005
6/8/2005 6/14/2005
3/15/2005 3/29/2005
4/22/2005 4/27/2005

Sheet2:
A B
2/14/2005
3/25/2005

I generated the data in the Q Column:
=IF(OR(ISTEXT(L2),ISBLANK(L2)),"",IF(OR($M2'Sheet 2'!$A2+1,ISBLANK($M2)),NETWORKDAYS('Sheet2'!$A$2,$ L2),""))

Then I do:
=AVERAGE('Sheet1'!Q2:Q140)

Is there anyway that I can combine two formula into one to display in
column
B without generating Q, R Column and so on?

Thanks






All times are GMT +1. The time now is 02:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com