Multiple Ifs?

nfs001

New Member
Joined
Jan 24, 2018
Messages
6
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Hello

I would appreciate some help with a spreadsheet I have. I am trying to determine the responses from a survey that is sent out weekly. The respondent reply options are Yes or No, but I would also like to record if they dont respond. I have Sheet 1 where the survey results are pasted, and Sheet 2 where I would like to view the data by report number.

I have tried various If and vlookup formulas but am a novice so not really sure what I'm doing!

Any help would be much appreciated.

Thanks


Incident Reports marie2.xlsx
ABCD
1Sheet 1
2ReportYesNoNo Response
3100Dave
4100Jill
5100Simon
6100Sarah
7101Dave
8101Simon
9101Sarah
10101Jill
11102Simon
12102Jill
13102Sarah
14102Dave
15
16
17Sheet 2
18Name100101102
19DaveYesNoNo
20JillYesNoYes
21SarahNo ResponseNo ResponseYes
22SimonNoYesYes
Sheet1
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Try this

Book1
ABCD
1Sheet 1
2ReportYesNoNo Response
3100Dave
4100Jill
5100Simon
6100Sarah
7101Dave
8101Simon
9101Sarah
10101Jill
11102Simon
12102Jill
13102Sarah
14102Dave
15
16
17Sheet 2
18Name100101102
19DaveYesNoNo Response
20JillYesNoYes
21SarahNo ResponseNo ResponseYes
22SimonNoYesYes
Sheet1
Cell Formulas
RangeFormula
B19:D22B19=TEXTJOIN(" ",1,IF($A$3:$A$14=B$18,IF($B$3:$B$14=$A19,$B$2,"")&IF($C$3:$C$14=$A19,$C$2,"")&IF($D$3:$D$14=$A19,$D$2,""),""))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 1
what version of excel???

how about


=IFERROR(IF(COUNTIFS($B$3:$B$14,$A19,$A$3:$A$14,B$18),"Yes",IF(COUNTIFS($C$3:$C$14,$A19,$A$3:$A$14,B$18),"No",IF(COUNTIFS($D$3:$D$14,$A19,$A$3:$A$14,B$18),"No Response"))),"name/Report not in table")

probaly can do with an index match - But I just thought a countifs() which should work with some older versions of excel


Book1
ABCD
1Sheet 1
2ReportYesNoNo Response
3100Dave
4100Jill
5100Simon
6100Sarah
7101Dave
8101Simon
9101Sarah
10101Jill
11102Simon
12102Jill
13102Sarah
14102Dave
15
16
17Sheet 2
18Name100101102
19DaveYesNoNo Response
20JillYesNoYes
21SarahNo ResponseNo ResponseYes
22SimonNoYesYes
Sheet1
Cell Formulas
RangeFormula
B19:D22B19=IFERROR(IF(COUNTIFS($B$3:$B$14,$A19,$A$3:$A$14,B$18),"Yes",IF(COUNTIFS($C$3:$C$14,$A19,$A$3:$A$14,B$18),"No",IF(COUNTIFS($D$3:$D$14,$A19,$A$3:$A$14,B$18),"No Response"))),"name/Report not in table")
 
Upvote 1
Solution
Excel version Microsoft® Excel® for Microsoft 365 MSO (Version 2301 Build 16.0.16026.20002) 32-bit .

This is brilliant, both answers work.

Thank you so much for taking the time to help me
 
Upvote 0
your are welcome - its worth adding the excel version in your profile - so any future questions will know the version as different solutions will apply
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,107
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