+ Reply to Thread
Results 1 to 18 of 18

How to categorize blood pressure readings into groups

  1. #1
    Registered User
    Join Date
    05-21-2011
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2003
    Posts
    2

    How to categorize blood pressure readings into groups

    I am trying to automate a frequently performed process in our medical clinic. We often collect blood pressure reading and assign them to a level of severity. I would like to be able to have excel perform this function and hope someone cn help.

    Let me explain a bit more. Every blood pressure has two numbers: a top # and a bottom #. Blood pressures are grouped into the following category
    • Controlled if both numbers are less than 140/90
    • Stage 1 - top number is between 140-159 or bottom number is 90-99
    • Stage 2 - top number is equal or greater than 160 or bottom number is equal or greater than 100

    If a blood pressure falls in more that one group, the blood pressure is assigned to the highest group. So the top group Stage 2> Stage1> controlled. For example 145/110 is stage 2 and a BP of 110/95 is stage 1

    Can someone point me in the right direction?
    Attached Files Attached Files
    Last edited by mkosel; 05-21-2011 at 06:08 PM. Reason: change post title

  2. #2
    Valued Forum Contributor Sadath31's Avatar
    Join Date
    03-02-2011
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    452

    Re: Stratify blood pressures

    Attached can help you?
    Attached Files Attached Files

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Stratify blood pressures

    Try this:

    =CHOOSE(MAX(MATCH(A2,{0,140,160},1),MATCH(B2,{0,90,100},1)),"Controlled","Stage 1", "Stage 2")

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    09-23-2008
    Location
    Mexico
    Posts
    200

    Re: Stratify blood pressures

    Here is one way
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: Stratify blood pressures

    At cell C2, use the formula
    =+IF(AND(A2<140,B2<90),"Controlled",IF(AND(A2>=140,A2<160,B2>=90,B2<=99),"Stage 1",IF(OR(A2>=160,B2>100),"stage 2","other out of the groups")))
    copy cross for ,C3,C4,....

    You can replace "other out of the groups" by "stage 2" ( I am not sure)

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Stratify blood pressures

    A comparison of the various approaches is attached.

    Regards
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-21-2011
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Stratify blood pressures

    Quote Originally Posted by Armando Montes View Post
    Here is one way
    this was almost perfect. I made two changes and it works perfect. (I changed the ANDs to ORs and used ">=" instead of ">"

    =IF(OR(A2>=160,B2>=100),"Stage 2",IF(OR(A2>=140,B2>=90),"Stage 1","Controlled"))

    Thanks for your help!

  8. #8
    Registered User
    Join Date
    02-07-2020
    Location
    Wolverhampton, England
    MS-Off Ver
    365
    Posts
    1

    Re: How to categorize blood pressure readings into groups

    I know this is old thread however i have had a similar problem and hopefully this helps others looking into this - following the UK's Blood Pressure chart ive used the following code which is working fine for me, feel free to adapt it for you.

    Note! A2 is Systolic & B2 is Diastolic

    =IF(OR(A2>=140,B2>=90),"High",IF(OR(AND(A2>=120,A2<140),AND(B2>=80,B2<90)),"Pre High",IF(OR(AND(A2>=90,A2<120),AND(B2>=60,B2<80)),"Ideal",IF(OR(A2<90,B2<60),"Low",""))))

  9. #9
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: How to categorize blood pressure readings into groups

    Always create a new thread, don't post in other peoples old threads. You can link to the old thread.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,756

    Re: How to categorize blood pressure readings into groups

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: How to categorize blood pressure readings into groups

    @Jacc/Ali: to be fair, he is not asking a question, simply adding a late response to an old thread on the basis that it might help others who find this thread.

    If he were to start a new thread, it would perhaps be more of a hint/tip rather than a question.

    That said, my initial reaction was the same as yours until I read the contents.

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,756

    Re: How to categorize blood pressure readings into groups

    Oops - my mistake - you are correct, Pete.

  13. #13
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: How to categorize blood pressure readings into groups

    I think my brain reads no more than 3 words in a post and then extrapolates from that... Sorry

  14. #14
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: How to categorize blood pressure readings into groups

    @Ali: Pete?

    @Jacc: no worries, I nearly went down the same track

  15. #15
    Registered User
    Join Date
    02-11-2023
    Location
    Accra, Ghana
    MS-Off Ver
    2019
    Posts
    3

    Re: How to categorize blood pressure readings into groups

    Hello, please I’m unable to access the various links to the responses. Could use some help. Thank you

  16. #16
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: How to categorize blood pressure readings into groups

    I was able to open the files without any problem.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  17. #17
    Registered User
    Join Date
    02-11-2023
    Location
    Accra, Ghana
    MS-Off Ver
    2019
    Posts
    3
    Quote Originally Posted by FDibbins View Post
    I was able to open the files without any problem.
    I have been able to open. Thank you

  18. #18
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: How to categorize blood pressure readings into groups

    Thanks for the feedback

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1