If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Average Length of Stay
Column A is Funding Source: "A" or "T"
Column B is Days of Stay calculated from check-out date minus check-in date. How to calculate Column C as Average Length of Stay for "A"s? |
#2
|
|||
|
|||
Average Length of Stay
Hi,
Try this =sumproduct((A2:A150="A")*(B2:B150))/countif(A2:A150,"A") -- Regards, Ashish Mathur Microsoft Excel MVP www.ashishmathur.com "Georgeb123" wrote in message ... Column A is Funding Source: "A" or "T" Column B is Days of Stay calculated from check-out date minus check-in date. How to calculate Column C as Average Length of Stay for "A"s? |
#3
|
|||
|
|||
Average Length of Stay
=SUMIF(A1:A26,"A",B1:B26)/COUNTIF(A1:A26,"A")
or, if you have Excel 2007+ =AVERAGEIF(A1:A26,"A",B1:B26) best wishes -- Bernard Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme "Georgeb123" wrote in message ... Column A is Funding Source: "A" or "T" Column B is Days of Stay calculated from check-out date minus check-in date. How to calculate Column C as Average Length of Stay for "A"s? |
Thread Tools | |
Display Modes | |
|
|