locating and gathering data from many sheet!
locating and gathering data from many sheet!
(OP)
This is a little complicated so, forgive me if this isnt 100% clear. Here is a diagram to help.
___H_____I_______J_________________
3 5 A
5 2 B
5 5 B
4 1 C
2 5 B
In colum 'J' I have coding ('A', 'B' and 'C'), now say I wanted to find all the values in 'H' which were given code 'B' in 'J'.
I need to do this across 31 sheets in a book of over 100 sheets, all I want it to do, is locate all the B's and add up all the 'H' cells in their rows. and give me a total.
Do you follow me? It doesnt seem clear to me
Thanx
Will
___H_____I_______J_________________
3 5 A
5 2 B
5 5 B
4 1 C
2 5 B
In colum 'J' I have coding ('A', 'B' and 'C'), now say I wanted to find all the values in 'H' which were given code 'B' in 'J'.
I need to do this across 31 sheets in a book of over 100 sheets, all I want it to do, is locate all the B's and add up all the 'H' cells in their rows. and give me a total.
Do you follow me? It doesnt seem clear to me
Thanx
Will
RE: locating and gathering data from many sheet!
regardless, you will only be able to sum the required data on a per sheet basis and not the workbook, unless you total it by entering an equation to sum the totals on each sheet (not complicated) - a summary sheet!
1) try the subtotal capabilities withing excel (likely not)
2) try using the filter (autofilter) capabilities of excel, or
3) try the sumif function within excel.
advise further of your progress!
good luck!
-pmover
RE: locating and gathering data from many sheet!
=if(J1="B",H1,0)
copy K1 down through as many rows as you have. At the bottom, sum them all up.
Do the same for each of the 31 sheets of interest.
Sum the sums for each of the 31 sheets of interest.
RE: locating and gathering data from many sheet!
RE: locating and gathering data from many sheet!
Your idea is similar to the one I devised, which Im gonna use, I was lookig for a quicker answer. Im gonna simply do all the ifsums in hidden cells in each table then add them all up at the end. Its easy enough, just gonna take all day condsidering the size of the spreadsheet.
Thanx anyway,
Will
RE: locating and gathering data from many sheet!
=SUMIF(J:J,"B",H:H)
Cheers,
Joerd
Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
RE: locating and gathering data from many sheet!
At each sheet, if you have say (3) coding then you have to set up (3) Criteria Fields. Each field is one column wide x two rows high. The top cells say cells E5, E6, E7 would each contain the title cell of the J colums, say "Coding". The 2nd row, E6, E7, E8 will contain the specific coding, say A, D and C respectively. Then in the cells where you want the answer to appear for each criteria, (must be same relative location on all sheets), you put in the DSUM function.
DSUM(Database say H1:A6,Field or column no with leftmost column in the database being column 1,Criteria for example E5:E6 for coding A).
At a summary sheet, total up the totals of each sheet per Coding criteria.