To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.
To attach a file to your post,
click advanced (next to quick post),
scroll down until you see "manage file",
click that and select "add files" (top right corner).
click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"
Once the upload is completed the file name will appear below the input boxes in this window.
You can then close the window to return to the new post screen.
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Okay, for table two, in the first row I put the min row you want summed (i.e. 2 or 4) and in row 2 I put the maximum row you want summed (i.e. 2 or 6)
Then the formula in H3 that can be copied across and down is
=SUM(INDEX($A$2:$E$6,MATCH(H$1,{2,3,4,5,6},0),MATCH($G3,$A$1:$E$1,0)):INDEX($A$2:$E$6, MATCH(H$2,{2,3,4,5,6},0),MATCH($G3,$A$1:$E$1,0)))
See attached.
ChemistB My 2¢
substitute commas with semi-colons if your region settings requires
Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)
Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble
Bookmarks