If Cells Contain (Specific) Text Multiply Corresponding Cells (Excel-Meathead needs help)

Cederstark

New Member
Joined
Feb 25, 2018
Messages
3
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD](A) Exercise[/TD]
[TD](A) Sets[/TD]
[TD](A) Reps[/TD]
[TD](B) Total[/TD]
[TD](B) Sets[/TD]
[TD](B) Reps[/TD]
[/TR]
[TR]
[TD]Squat[/TD]
[TD]1[/TD]
[TD]5[/TD]
[TD]Squat[/TD]
[TD]1[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Bench[/TD]
[TD]2[/TD]
[TD]5[/TD]
[TD]Bench[/TD]
[TD]2[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Deadlift[/TD]
[TD]3[/TD]
[TD]5[/TD]
[TD]Deadlift[/TD]
[TD]3[/TD]
[TD]15[/TD]
[/TR]
</tbody>[/TABLE]

Hey everyone, I'm using Excel 2016, and I'm trying to have Excel auto-calculate the total number of reps based on the exercise. I've managed auto-calculating the total number of sets using the "SUMIF"-command, however, I'm at a loss when it comes to this portion.

Calculating reps is very straightforward (Sets x Reps = Total Reps).

In it's simplest terms I'm trying to have Excel do the following:
1. Identify the exercise under (A) Exercise.
2. Multiply (A) Sets with (A) Reps.
3. Show the result in (B) Reps, next to the correct exercise.

Hopefully this is legible enough to warrant a response. Thanks to everyone in advance!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi,

Here's one way:


Excel 2010
ABCDEF
1(A) Exercise(A) Sets(A) Reps(B) Total(B) Sets(B) Reps
2Squat15Squat15
3Bench25Bench210
4Deadlift35Deadlift315
Sheet1
Cell Formulas
RangeFormula
F2=SUMPRODUCT((A$2:A$4=D2)*(B$2:B$4)*(C$2:C$4))


F2 formula copied down.
 
Upvote 0
On second thought, maybe you meant this:


Excel 2010
ABCDEF
1(A) Exercise(A) Sets(A) Reps(B) Total(B) Sets(B) Reps
2Squat15Squat210
3Bench25Bench315
4Deadlift35Deadlift420
Sheet1
Cell Formulas
RangeFormula
F2=SUMPRODUCT((A$2:A$4=D2)*(E$2:E$4)*(C$2:C$4))
 
Last edited:
Upvote 0
You're welcome, welcome to the forum.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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