SUMIF, VLOOKUP, or something else?

cdh121

New Member
Joined
Jul 21, 2005
Messages
31
Hello, Denizens of the Board:

I have a sheet that contains multiple, non-adjacent columns for "Activity" and multiple, non-adjacent columns for "Reps", with an Activity column always paired with a Reps column...and there are various values in each column, like this:

Day Activity Reps Activity Reps Activity Reps
Mon Walking 20 Sit Ups 50 Curls 10
Tue Pushups 10 Walking 20 Pull Ups 5

I'd like to have a table that will account for, and total, all reps for each given activity, even if a given activity isn't always recorded in the same column (such as the two occurrences of Walking above). The totals don't need to be date-specific in any way; I just want grand totals for each type of activity on the worksheet.

Here's what I know:
1. If a given activity is always recorded in the same column, I can use SUMIF...I just can't guarantee, for example, that Walking will always be placed into Column B, as in the example.
2. If a new activity is done, I need to add a formula to total that activity.
3. SUMIF doesn't seem to work; even though I've named my ranges Activity and Reps, the Names don't seem to want to play nicely with the formula. I'm not savvy enough to know if SUMIFS, SUMPRODUCT, VLOOKUP, or something else might work...that's just a little over my head!

So, I'm looking for something else that will help with this.

Degree of Difficulty: I am using Excel Starter, so don't have access to PivotTables.

Thanks in advance,

cdh121
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hello, Denizens of the Board:

I have a sheet that contains multiple, non-adjacent columns for "Activity" and multiple, non-adjacent columns for "Reps", with an Activity column always paired with a Reps column...and there are various values in each column, like this:

Day Activity Reps Activity Reps Activity Reps
Mon Walking 20 Sit Ups 50 Curls 10
Tue Pushups 10 Walking 20 Pull Ups 5

I'd like to have a table that will account for, and total, all reps for each given activity, even if a given activity isn't always recorded in the same column (such as the two occurrences of Walking above). The totals don't need to be date-specific in any way; I just want grand totals for each type of activity on the worksheet.

Here's what I know:
1. If a given activity is always recorded in the same column, I can use SUMIF...I just can't guarantee, for example, that Walking will always be placed into Column B, as in the example.
2. If a new activity is done, I need to add a formula to total that activity.
3. SUMIF doesn't seem to work; even though I've named my ranges Activity and Reps, the Names don't seem to want to play nicely with the formula. I'm not savvy enough to know if SUMIFS, SUMPRODUCT, VLOOKUP, or something else might work...that's just a little over my head!

So, I'm looking for something else that will help with this.

Degree of Difficulty: I am using Excel Starter, so don't have access to PivotTables.

Thanks in advance,

cdh121
Try this...

Data table:

Book1
BCDEFG
1ActivityRepsActivityRepsActivityReps
2Walking20Sit Ups50Curls10
3Pushups10Walking20Pull Ups5
Sheet1

Summary table:

Book1
BC
8Walking40
9Sit Ups50
10Pushups10
11Pull Ups5
12Curls10
Sheet1

This formula entered in C8 and copied down:

=SUMIF(B$2:F$3,B8,C$2:G$3)

Note how the ranges are offset.
 
Upvote 0
Try this...

Data table:

Book1
*BCDEFG
1ActivityRepsActivityRepsActivityReps
2Walking20Sit Ups50Curls10
3Pushups10Walking20Pull Ups5
Sheet1

Summary table:

Book1
*BC
8Walking40
9Sit Ups50
10Pushups10
11Pull Ups5
12Curls10
Sheet1

This formula entered in C8 and copied down:

=SUMIF(B$2:F$3,B8,C$2:G$3)

Note how the ranges are offset.
That seems to have worked nicely...I think the offset range may have been the piece that I was missing. Thanks so much for your excellent, timely help!
 
Upvote 0

Forum statistics

Threads
1,224,558
Messages
6,179,512
Members
452,920
Latest member
jaspers

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top