+ Reply to Thread
Results 1 to 7 of 7

Help figuring out $ in one column with conditions based on other columns

  1. #1
    Registered User
    Join Date
    01-24-2013
    Location
    austin, tx
    MS-Off Ver
    Excel 2007
    Posts
    8

    Help figuring out $ in one column with conditions based on other columns

    I am working on a follow up survey that will give me the % of people who answered "yes" in columns GHI also answered yes in column D, also if "YES" Yes in column E but No in column G.Excel Help.xlsx

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Help figuring out $ in one column with conditions based on other columns

    ...answered "yes" in columns GHI also .....but No in column G

    The answer is none.

    Column G can not be both Yes and No
    ===========================================
    Did you mean two conditions?:
    - Condition 1 - Yes to D,G,H and I
    - Condition 2 - Yes to E and no to G
    Last edited by K m; 01-30-2013 at 03:16 PM.
    Click on star (*) below if this helps

  3. #3
    Registered User
    Join Date
    01-24-2013
    Location
    austin, tx
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Help figuring out $ in one column with conditions based on other columns

    sorry, yes that is what I meant.
    1) If they answered yes to GHI, % that said yes to column D
    2) If they answered No to column G, % that said yes to column E

  4. #4
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Help figuring out $ in one column with conditions based on other columns

    Put this formula in cell D5 and copy down
    =IFERROR(IF(AND(G5="Yes",H5="Yes",I5="Yes"),1,0),"")

    Put this formula in cell E5 and copy down
    =IF(ISNA(IF(G5="yes",1,0)),"",IF(G5="yes",1,0))

    The percentage is the SUM divided by the COUNT *100

  5. #5
    Registered User
    Join Date
    01-24-2013
    Location
    austin, tx
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Help figuring out $ in one column with conditions based on other columns

    If I do that it changes the data in those cells(D5 and E5)for "yes" or "no" to a number.

  6. #6
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Help figuring out $ in one column with conditions based on other columns

    It will return either a blank, 0 or 1. Blank is there is an error, zero if there is no match and one if there is a match. To get a percentage from there should be easy as it is sum/number of entries times 100

  7. #7
    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,926

    Re: Help figuring out $ in one column with conditions based on other columns

    for D,G,H,I = YES...
    =COUNTIFS($D$5:$D$25,"YES",$G$5:$G$25,"YES",$H$5:$H$25,"YES",$I$5:$I$25,"YES")
    for G=no, E = YES...
    =COUNTIFS($G$5:$G$25,"NO",$E$5:$E$25,"YES")

    Not sure how you want to work out the %, but that will give you the qty
    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

+ 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