nested ifs

vckidd2001

New Member
Joined
Jul 21, 2014
Messages
3
I have a score for whether someone attends a meeting or not connected to a drop-down list eg. present in the list equals 3 and absent equals 0, etc. That drop down list is then used across 5 meetings across a year. I want to give each person an attendance score so that these scores can be compared across attendees.

This is the code I am using but I am sure there must be an easier way to do this. Any ideas?

=IF(C2 = "Present",Key!$B$2,IF(C2 = "Ill",Key!$B$4,IF(C2 = "Half-Time",Key!$B$3,IF(C2 = "N/A",Key!$B$6,0))))

Cheers
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
A1 =INDEX('Key'!$B$2:$B$6,MATCH(C2,{"Present","Half-Time","Ill","ZZZZZZZZZZZZZZZ","N/A"},0))
 
Upvote 0
So I have all the totals from the words in separate columns and then a sum of those columns. What I want is to be able to do all that in one go in the total column at the beginning without the need for multiple columns. Hope this makes sense

7310680_orig.png
 
Upvote 0
<b>Array Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #BBB"><thead><tr style=" background-color: #DAE7F5;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">J2</th><td style="text-align:left">{=SUM(<font color="Blue">TRANSPOSE(<font color="Red">INDIRECT(<font color="Green">IFERROR(<font color="Purple">LOOKUP(<font color="Teal">$B2:$I2,{"Half-Time","Key!B3";"Ill","Key!B4";"N/A","Key!B6";"Present","Key!B2"}</font>),"key!ZZ500000"</font>)</font>)</font>)</font>)}</td></tr></tbody></table><b>Entered with Ctrl+Shift+Enter.</b> If entered correctly, Excel will surround with curly braces {}.</td></tr></table><br />



Excel 2013
ABCDEFGHIJ
1Total02 201304 201307 201310 201301 201403 201407 201410 2014
2PresentPresentPresentPresentPresent15
3PresentPresentPresentPresent12
4PresentPresentPresentIll10
5N/APresentPresentPresent12
6PresentPresentPresentPresent12
7PresentPresentPresentPresent12
8N/APresentPresentAbsent9
9PresentPresentPresentPresent12
Sheet1
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,332
Members
449,077
Latest member
jmsotelo

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