ChatterBank1 min ago
Autocount of data from other excel worksheets
4 Answers
How do I autoinsert a count on another worksheet when entering arrival/departure times in a worksheet. The count sheet should fill each hour with the digit 1 and then count each 1 at the bottom of the summary worksheet.
Answers
Best Answer
No best answer has yet been selected by vivtimmis. Once a best answer has been selected, it will be shown here.
For more on marking an answer as the "Best Answer", please visit our FAQ.Morning Viv,
Not sure i understand the first part of your question, but the second is easily overcome using COUNTIF. For example:
=COUNTIF(A1:A10,"1")
Here, it will search the cells from A1 through A10, for the value 1. As its in quotes, Excel thinks its looking for some text, so you could equally make it search for "Tuesday" or "Train". You can also make it cross reference sheets by putting the sheet name in front of the cell names. For example:
=COUNTIF('Sheet2'!A1:A10,"1")
Notice you use single quotes this time and an exclamation mark. Sheet1 obviously refernces the sheet you're trying to count from.
This of course can be done easier by typing "=COUNTIF(" then after typing the open bracket, using the mouse to click onto the other sheet.
Not sure i understand the first part of your question, but the second is easily overcome using COUNTIF. For example:
=COUNTIF(A1:A10,"1")
Here, it will search the cells from A1 through A10, for the value 1. As its in quotes, Excel thinks its looking for some text, so you could equally make it search for "Tuesday" or "Train". You can also make it cross reference sheets by putting the sheet name in front of the cell names. For example:
=COUNTIF('Sheet2'!A1:A10,"1")
Notice you use single quotes this time and an exclamation mark. Sheet1 obviously refernces the sheet you're trying to count from.
This of course can be done easier by typing "=COUNTIF(" then after typing the open bracket, using the mouse to click onto the other sheet.
I have a workbook with a sheet that has hours in the columns for arrival/departure of trains. The rows indicate the train ID's. On another worksheet I currently have the same setup which I place the number 1 in the hour column to indicate the train has arrived/departed. This then totals the 1's in a total row. I would like the 2nd sheet to autofill 1's in each hour for each train that arrives/departs to sum the trains that move over a 24 hour period. Thanks.
-- answer removed --
Related Questions
Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.