+ Reply to Thread
Results 1 to 9 of 9

If, And, Or Function Help -

  1. #1
    Registered User
    Join Date
    02-25-2012
    Location
    Lansing, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    13

    If, And, Or Function Help -

    Hello Excel users,

    I was hoping someone could help me with this issue I am having.

    I want to create a formula that allow me to take data from one cell, and place is into another under certain conditions.
    This is for a scoring sheet that will incorporated for psychological testing.

    Cell BG4 = 78.
    I want cell BG6 to take the # inputted in cell BG4 (78 for this example) and format it under the following conditions:

    If the age of the patient (cell D6) is between 45-64, then BG6 = BG4 + 8
    If the age of the patient (cell D6) is between 65-80, then BG6 = BG4 + 14

    How can I make it do this?

    Please help,
    Monica

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: If, And, Or Function Help -

    hello
    do you have a age less than 45??
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: If, And, Or Function Help -

    =if(and(d6>45,D6<64),BG4+8,BG4+14)

    or

    =if(D6<65,BG4+8,Bg4+14)

    or

    =if(and(d6>45,D6<64),BG4+8,if(and(D6>65,D6<80),BG4+14,"")

  4. #4
    Registered User
    Join Date
    02-25-2012
    Location
    Lansing, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: If, And, Or Function Help -

    No ages less than 45.

  5. #5
    Registered User
    Join Date
    02-25-2012
    Location
    Lansing, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: If, And, Or Function Help -

    But 45, 64, 65, and 80 must all be included as ages. I have patients that are 45 years of age (and 64, 65, 80) that must be included.

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: If, And, Or Function Help -

    go to number 2 and sorry those are bg6 not 4

  7. #7
    Registered User
    Join Date
    02-25-2012
    Location
    Lansing, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: If, And, Or Function Help -

    Thanks Vlady,

    Am I just pasting that entire thing into the cell?

  8. #8
    Registered User
    Join Date
    02-25-2012
    Location
    Lansing, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: If, And, Or Function Help -

    This doesn't seem to be working.

  9. #9
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: If, And, Or Function Help -

    What result do you get?
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

+ 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