Combining If THEN and VLOOKUP

mrsadventure

New Member
Joined
Mar 22, 2019
Messages
1
I am in desperate need of help. I am a novice at excel formulas. I need to write a formula that will pull from a set of data the separates between a Male or Female, Number of Push Ups and then provides a score...so for example:


<colgroup><col style="width:48pt" width="64" span="4"> </colgroup><tbody>
[TD="class: xl66, width: 128, colspan: 2, align: center"]M
[/TD]
[TD="class: xl66, width: 128, colspan: 2, align: center"]F
[/TD]

[TD="class: xl66, align: center"]Push Ups[/TD]
[TD="class: xl66, align: center"]Score[/TD]
[TD="class: xl66, align: center"]Push Ups[/TD]
[TD="class: xl66, align: center"]Score[/TD]

[TD="class: xl63, align: center"]36[/TD]
[TD="class: xl65, align: center"]52[/TD]
[TD="class: xl63, align: center"]36[/TD]
[TD="class: xl64, align: center"]90[/TD]

[TD="class: xl63, align: center"]35[/TD]
[TD="class: xl65, align: center"]50[/TD]
[TD="class: xl63, align: center"]35[/TD]
[TD="class: xl64, align: center"]88[/TD]

[TD="class: xl63, align: center"]34[/TD]
[TD="class: xl65, align: center"]49[/TD]
[TD="class: xl63, align: center"]34[/TD]
[TD="class: xl64, align: center"]86[/TD]

[TD="class: xl63, align: center"]33[/TD]
[TD="class: xl65, align: center"]48[/TD]
[TD="class: xl63, align: center"]33[/TD]
[TD="class: xl64, align: center"]84
[/TD]

[TD="class: xl63, align: center"]32[/TD]
[TD="class: xl65, align: center"]46[/TD]
[TD="class: xl63, align: center"]32[/TD]
[TD="class: xl64, align: center"]83[/TD]

[TD="class: xl63, align: center"]31[/TD]
[TD="class: xl65, align: center"]45[/TD]
[TD="class: xl63, align: center"]31[/TD]
[TD="class: xl64, align: center"]81[/TD]

[TD="class: xl63, align: center"]30[/TD]
[TD="class: xl65, align: center"]43[/TD]
[TD="class: xl63, align: center"]30[/TD]
[TD="class: xl64, align: center"]79[/TD]

[TD="class: xl63, align: center"]29[/TD]
[TD="class: xl65, align: center"]42[/TD]
[TD="class: xl63, align: center"]29[/TD]
[TD="class: xl64, align: center"]77
[/TD]

</tbody>

So if I am in a new spreadsheet, first column (A) would say M or F, then I will enter data in column (B) then I need Column C to show the corresponding answer, for example[TABLE="width: 500"]
<tbody>[TR]

[/TR]
[TR]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[/TR]
[TR]
[TD]M
[/TD]
[TD]36
[/TD]
[TD]using the data above should calculate and show "52"
[/TD]
[/TR]
[TR]
[TD]F
[/TD]
[TD]30
[/TD]
[TD]using the data above should calculate and show "79"
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi & welcome to MrExcel
How about


Excel 2013/2016
ABC
1ABC
2M3043
3F3690
Sheet2
Cell Formulas
RangeFormula
C2=SUMPRODUCT((Sheet1!$A$1:$D$1=A2)*(Sheet1!$A$3:$D$10=B2),Sheet1!$B$3:$E$10)



Excel 2013/2016
ABCD
1MF
2Push UpsScorePush UpsScore
336523690
435503588
534493486
633483384
732463283
831453181
930433079
1029422977
Sheet1
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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