+ Reply to Thread
Results 1 to 3 of 3

Link 2 different variables to Male/Female for no' alcohol units

  1. #1
    Registered User
    Join Date
    09-11-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    20

    Link 2 different variables to Male/Female for no' alcohol units

    Hi there

    I am trying to work out how I can have an integer score for number of units of alcohol consumed in 1 week with an outcome that is different depending on if you are male or female.

    I have attached a worksheet with some example data - I would like to be able to type in the number of units someone says they consume on average within one week and the box next to it gives a verbal description of whether this is an acceptable amount or not according to the UK guidelines. This is 21 units per week for men and 14 for women. Not sure how to create this formula and link in the gender differences

    Thanksalcohol.xls

  2. #2
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Link 2 different variables to Male/Female for no' alcohol units

    I´m not sure if you also record if a person is male or female, or if you just want to give both answers.
    In the first case, assuming the number of consumptions is in A1 and the gender is in B1, use this in C1:
    =IF(OR(AND(A1<=21,B1="Male"),AND(A1<=14,B1="Female")),"Acceptable","Not acceptable")

    In the second case, you could build something like this (same assumption for A1):
    =IF(A1<=14,"Acceptable for both males and females",IF(A1<=21,"Acceptable for males, unacceptable for females","Unacceptable for both males and females"))
    When I say semicolon, u say comma!

  3. #3
    Registered User
    Join Date
    09-11-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    20

    Red face Re: Link 2 different variables to Male/Female for no' alcohol units

    Works perfectly, thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Automatically adding Mr or Ms to male/female
    By TTej in forum Excel General
    Replies: 7
    Last Post: 10-03-2017, 11:49 AM
  2. [SOLVED] Formula for male and female staff on rota
    By bigtiger1 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 08-06-2013, 07:03 AM
  3. Replies: 16
    Last Post: 01-16-2012, 07:09 AM
  4. Excel Male / Female Column
    By ringrim in forum Excel General
    Replies: 5
    Last Post: 08-13-2008, 05:28 PM
  5. IF male or female IF age is in range...THEN...
    By mtmagent in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-22-2006, 03:14 AM

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