Help with reusable and fillable excel form for depression screening

MRC3411

New Member
Joined
Sep 28, 2023
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
Hi - I am very new to advanced conditional formulas in excel trying to build a reusable and fillable Depression Scale excel form. The form has a range of scores that determine the depression severity.

I am stuck at:

  1. Creating a vlookup/range lookup(?)
    for a range of numbers to determine the severity - my formula in reference to this table is
    WuJpdMGsRyH8Aa1BKl0iC




  2. Formula: =VLOOKUP(C23:E28,=D24,<=E24,"None",FALSE,=D25,<=E25,"MILD",FALSE, =10,<=14,"MODERATE",FALSE,=D27,<=E27,"MODERATELY SEVERE",FALSE,=20<=27,"SEVERE", FALSE)

PHQ - 9 QUESTIONNAIRE
NAMEDATE
Not at allSeveral daysMore than half the daysNearly every daySCOREIN SHADED SECTION
1Little interest or pleasure in doing things0123Answer 12TRUE
2Feeling down, depressed or hopeless0123Answer 23TRUE
3Trouble falling asleep, staying asleep, or sleeping too much0123Answer 34TRUE
4Feeling tired or having little energy0123Answer 42TRUE
5Poor appetite or overeating023Answer 53TRUE
6Feeling bad about yourself - or that you’re a failure or have let yourself or your family down0123Answer 62TRUE
7Trouble concentrating on things, such as reading the newspaper or watching television0123Answer 72TRUE
8Moving or speaking so slowly that other people could have noticed. Or, the opposite - being so fidgety or restless that you have been moving around a lot more than usual0123Answer 81FALSE
9Thoughts that you would be better off dead or of hurting yourself in some way0123Answer 92TRUE
NO. OF ANSWERS IN SHADED SECTION8
ANSWER O Q1 OR Q2 IS IN THE SHADED SECTIONTRUE
RESULT
DIAGNOSISMajor Depressive Disorder
TOTAL SCORE21
Depression Severity#VALUE!
Severity Category
Total ScoreDepression SeverityMINMAX
None04
Mild59
Moderate1014
Moderately Severe1519
Severe2027

Also - I will need your help with the VBA for entering the name and date...as well as for having the data downloaded into the sheet 2
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hmmm, I'd suggest replacing that with a handful of IF statements:
Excel Formula:
=IF(C18>19,"Severe",IF(C18>14,"Moderately Severe",IF(C18>9,"Moderate",IF(C18>4,"Mild","None"))))

It's roughly the same idea, but you wouldn't need the reference table (unless you want to replace the hard-coded numbers with cell references in E23:E27).
 
Upvote 0
Or this..
Excel Formula:
=CHOOSE(MATCH(C18, {0,5,10,15,20}, 1), "None", "Mild", "Moderate", "Moderately Severe", "Severe")

I don't understand exactly what you need from the VBA.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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