Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

locating and gathering data from many sheet! 5

Status
Not open for further replies.

WJT19

Computer
Jun 20, 2003
4
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 [yinyang]
 
Replies continue below

Recommended for you

a couple of ideas strike me, but you will need to investigate and make the attempts yourself as i'm currently using a pc w/out xl.
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
 
in column K1

=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.
 
MINTJULEP

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 [yinyang]
 
pmover's 3rd suggestion should work quicker than yours:
Code:
=SUMIF(J:J,"B",H:H)


Cheers,
Joerd

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
 
Use the DSUM function to come up with totals for each sheet to be displayed in the same relative location at each sheet. Then sum up the totals for each 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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor