I have a workbook to detail status of electrical motors which are located at various site locations with unique location numbers(ABC1234567,.......) in Column A, location area code (North, South, East, West, Central) in Column B, location status (Operational, Abandoned) in Column C, skid status (Online, Offline, Maintenance) in Column D, motor status within skid (Online, Offline, Maintenance, Removed) in Column D.
I have a Summary sheet which includes single value numbers for given site location, etc. As there are multiple motors on multiple skids at each location I obviously have to deal with duplicates, specifically with Column A site locations.
I am using Excel 2003, and the SUMPRODUCT function. This works well is providing me some of the values for the summary, but I am really struggling getting a workable formula for providing me with a number of site locations given a set series of given motor status. I am using the formula below but I am getting a decimalised value and not a whole number. For example I know that there are 98 sites that match a given status but formula gives an incorrect decimalised value.
=SUMPRODUCT((Data!$B$3:$B$500="North")*(Data!$C$3:$C$500="Operational")*(Data!$D$3:$D$500="Maintenance")*(Data!$E$3:$E$500="Online")/(COUNTIF(Data!$A$13:$A$500,Data!$A$3:$A$500)))
I have looked at the formula evaluation tool and can see all appears well in the SUMPRODUCT section (FALSE and TRUE giving 1 and 0), but when in the COUNTIF section where there are duplicates the 1 for true becomes 0.5, etc when a duplicate site exists.
I have tried multiple solutions form lots a Google searches, so a post for help is now required. Worth saying I can get a answer using PIVOT tables and advance filters, but I want a working formula for flexibility.
I have a Summary sheet which includes single value numbers for given site location, etc. As there are multiple motors on multiple skids at each location I obviously have to deal with duplicates, specifically with Column A site locations.
I am using Excel 2003, and the SUMPRODUCT function. This works well is providing me some of the values for the summary, but I am really struggling getting a workable formula for providing me with a number of site locations given a set series of given motor status. I am using the formula below but I am getting a decimalised value and not a whole number. For example I know that there are 98 sites that match a given status but formula gives an incorrect decimalised value.
=SUMPRODUCT((Data!$B$3:$B$500="North")*(Data!$C$3:$C$500="Operational")*(Data!$D$3:$D$500="Maintenance")*(Data!$E$3:$E$500="Online")/(COUNTIF(Data!$A$13:$A$500,Data!$A$3:$A$500)))
I have looked at the formula evaluation tool and can see all appears well in the SUMPRODUCT section (FALSE and TRUE giving 1 and 0), but when in the COUNTIF section where there are duplicates the 1 for true becomes 0.5, etc when a duplicate site exists.
I have tried multiple solutions form lots a Google searches, so a post for help is now required. Worth saying I can get a answer using PIVOT tables and advance filters, but I want a working formula for flexibility.