Help with IF function

rmaclagan

New Member
Joined
Apr 14, 2009
Messages
3
I need cell V3 to populate with a percentage that corresponds with a range of cells (AC7:AF9 shown below) based on a couple of variables (their age, whether they are male or female). basically it should be like this...

Cell V3 (A Soldiers Allowed BF%) will automatically populate from a range (AC7:AF9) based on cell E3 (whether they are M (Male) of F (Female)) and their age (which auto populates based on their date of birth) in cell F3. But if cell D3 (date of birth) is blank then it returns blank.

The Range looks like this:

AB7-9 AC7-9 AD7-9 AE7-9 AF7-9
AGE GROUP 17-20 21-27 28-39 40+
MALE BF% 20% 22% 24% 26%
FEMALE BF% 30% 32% 34% 36%



Hopefully this is enough info. If not let me know and i will get it for you as soon as i can.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
You could try something like

Code:
=IF(D3="","",CHOOSE(IF(E3="M",1,2),LOOKUP(F3,{17,21,28,40},{0.2,0.22,0.24,0.26}),LOOKUP(F3,{17,21,28,40},{0.3,0.32,0.34,0.36})))

you'd have to format V3 as a percentage
 
Upvote 0
You could try something like

Code:
=IF(D3="","",CHOOSE(IF(E3="M",1,2),LOOKUP(F3,{17,21,28,40},{0.2,0.22,0.24,0.26}),LOOKUP(F3,{17,21,28,40},{0.3,0.32,0.34,0.36})))

you'd have to format V3 as a percentage


Thanks Weazel. Thats what i needed it to do.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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