VLookup and Countif? Might be the wrong formula options for what I am trying to do... :)

farmgirl1718

New Member
Joined
Jul 8, 2013
Messages
8
Hi! I am so relieved to learn about the forum. I am a first time poster with my challenge below. I am appreciative for any and all help or guidance that you can provide. :)

I am trying to build a new report using database outputs. On the new report tab that I am creating, I created a dropdown list with survey name options, which I am trying to link to the information in the database output tab to show number of answers per option in the dropdown list.

The problem is, the countif and vlookup options are not correctly showing this information for one candidate or calculating based on the option referenced in the dropdown menu, because there is more than one option in the database output list. When using the countif or vlookup, I am having trouble with it calculating the match.

Please see my example below:

Database Output

Name, Answer 1
Candidate1, 4
Candidate1, 4
Candidate1, 2
Candidate1, 1
Candidate2, 3
Candidate2, 5
Candidate2, 3

New Report Tab
Summary, Answer 1 Criteria (1, 2, 3, 4, 5)
Candidate1, (1, 1, 0, 2, 0) (<=This is what I am trying to summarize from the database output per question per candidate.)


Thank you so much for all of your help!
 
Last edited:

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi and welcome to MrExcel.

Is this what you mean?...

Sample data and example results...

Excel Workbook
ABCDEFGHIJ
1NameAnswer 1Name12345
2Candidate14Candidate111020
3Candidate14Candidate200201
4Candidate12
5Candidate11
6Candidate23
7Candidate25
8Candidate23
9
Sheet1


The formula in E2 will work in versions of Excel 2007 and later.
The formula in E3 will work in all versions of Excel.

You will need to change the cell references to suit your layout and copy the formulas across and down/up depending on which one you chose.

I hope that helps.

Ak
 
Upvote 0
Akashwani: Your recommendation worked very well! I cannot thank you enough for your help!!!! I really appreciate it!
 
Upvote 0

Forum statistics

Threads
1,214,515
Messages
6,119,972
Members
448,933
Latest member
Bluedbw

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