By: Lutfor Rahman Shimanto

Hello ARON HOLMBERG Thank you for reporting your issues. To count the number of components for each station, when the Station ID may be in one of three different columns, you can use the SUMPRODUCT function. =SUMPRODUCT((InputSheet!$B:$B=B5)+(InputSheet!$C:$C=B5)+(InputSheet!$D:$D=B5)) This formula will test each of the three columns for the station ID and return 1 if it's present in any of the columns and 0 if it's not. Then, SUMPRODUCT will sum up the results, giving you the components for the station. This solution is more elegant than creating a new column that combines the three columns, as it avoids the need to manipulate the data. If you would like a copy of the illustrated workbook, please click the link provided below this section. /wp-content/uploads/2023/01/To-Count-the-Number-of-Components-for-Each-Station.xlsx Best regards, Lutfor Rahman Shimanto