Combining If THEN and VLOOKUP

New Member
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:

 M F Push Ups Score Push Ups Score 36 52 36 90 35 50 35 88 34 49 34 86 33 48 33 84 32 46 32 83 31 45 31 81 30 43 30 79 29 42 29 77

<colgroup><col style="width:48pt" width="64" span="4"> </colgroup><tbody>
</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

<tbody>
</tbody>
 A B C M 36 using the data above should calculate and show "52" F 30 using the data above should calculate and show "79"

<tbody>
</tbody>

Excel Facts

Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Fluff

MrExcel MVP, Moderator
Hi & welcome to MrExcel

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

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,164,016
Messages
5,834,945
Members
430,329
Latest member
asmith75

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.

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

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