+ Reply to Thread
Results 1 to 19 of 19

Multiple fields and want only 1 answer = TRUE or = FALSE

  1. #1
    Registered User
    Join Date
    04-22-2014
    Location
    MT
    MS-Off Ver
    Excel 2014
    Posts
    18

    Multiple fields and want only 1 answer = TRUE or = FALSE

    I have created a much larger report, but I am trying to filer the data for something I believe should be very simple. It is proving very difficult and I'm not sure how to get the data out I desire. Below I have listed a sample section from the document.

    I am trying to calculate if the data ever shows FALSE then the "PO Correct?" is false. As you see in 300415 the PO is TRUE, therefor the PO was correct. For 300697 the PO was correct 2 times (TRUE) so the PO is correct. On 301220, the PO is TRUE (4) times, but (1) FALSE, therefor the PO was not correct.

    PO # PO Correct?
    300415 TRUE

    300697 TRUE
    300697 TRUE

    301220 TRUE
    301220 FALSE
    301220 TRUE
    301220 TRUE
    301220 TRUE

    In this report I dumped data from QuickBooks and am trying to mine if a PO was ever changed in the system, then the PO was not correct from the time it was issued to the time it was received.

    Any help anyone could offer on this would be greatly appreciated. I have spent a few hours working on how to figure this out and I am assuming it is a simple solution. I'm not sure if I need to use a formula, macro, pivot chart, exc...
    Last edited by edanielqsf; 04-22-2014 at 11:09 PM.

  2. #2
    Registered User
    Join Date
    04-22-2014
    Location
    MT
    MS-Off Ver
    Excel 2014
    Posts
    18

    Re: Help with simple formula

    It would be most helpful if this was something that could be put into a macro or formula that would evaluate all of the POs in the spreadsheet to tell me how many by % were changed and how many stayed TRUE
    Last edited by edanielqsf; 04-22-2014 at 10:55 PM.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,884

    Re: Help with simple formula

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    12-08-2013
    Location
    Michigan, America
    MS-Off Ver
    Excel 365
    Posts
    21

    Re: Multiple fields and want only 1 answer = TRUE or = FALSE

    Hello,

    I have attached a workbook with a formula that I believe will help you. If you are unable to open the workbook the formula is below. I hope this helps!


    =IF(AND(B6,B7,B8,B9,B10=TRUE),"Correct","FALSE")
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-22-2014
    Location
    MT
    MS-Off Ver
    Excel 2014
    Posts
    18

    Re: Multiple fields and want only 1 answer = TRUE or = FALSE

    I super appreciate the help. Thank you very much, but I am looking for more than that.

    I am not just looking for the statement to be made "Correct"

    What I am trying to find is...

    300415 is TRUE because all of the answers it has had is TRUE

    300697 is TRUE because all of the answers it has are TRUE

    301220 is FALSE because it has had 1 FALSE answer

    What is going on in the spreadsheet is I am running a weekly report that is showing if a PO has been carried over from a previous week. If it has I am then evaluating if the PO delivery date has changed. What I have do is... If the date did change during any of the weeks when I ran the data that change is indicated as "FALSE"

    Now what I need to do is find how many of times the corresponding data says FALSE. If it is FALSE even 1 time then it is always considered FALSE.

    I would be more than happy to post the spreadsheet, but I am not sure how. I'm new to the forum and a bit lacking in my knowledge of how to post excel documents to them.

  6. #6
    Registered User
    Join Date
    12-08-2013
    Location
    Michigan, America
    MS-Off Ver
    Excel 365
    Posts
    21

    Re: Multiple fields and want only 1 answer = TRUE or = FALSE

    For the second part of your question, you could do a countif formual. Lets say you have a table like this:

    A1 True
    A2 True
    A3 True
    A4 False
    A5 True

    If you created a countif formula in cell A6 to count the True's, =countif(a1:a5,True) and then another countif formula in A7 to count the False's, =countif(a1:a5,False)

    Then divide the two and click your % button. You can enlarge the range of the cells if you have a large report for example =countif(a1:a1500,True)

  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,933

    Re: Multiple fields and want only 1 answer = TRUE or = FALSE

    Hi and welcome to the forum

    Thanks for the title change. If I understand you correctly, based on your sample data....
    A
    B
    C
    1
    PO # PO Correct?
    2
    300415
    TRUE
    3
    4
    300697
    TRUE
    5
    300697
    TRUE
    6
    7
    301220
    TRUE
    FALSE
    8
    301220
    FALSE
    FALSE
    9
    301220
    TRUE
    FALSE
    10
    301220
    TRUE
    FALSE
    11
    301220
    TRUE
    FALSE


    C2=IF(COUNTIFS($A$2:$A$11,A2,$B$2:$B$11,FALSE)>0,FALSE,"") copied down
    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

  8. #8
    Registered User
    Join Date
    04-22-2014
    Location
    MT
    MS-Off Ver
    Excel 2014
    Posts
    18

    Re: Multiple fields and want only 1 answer = TRUE or = FALSE

    I think this is on the right track. I am trying to drop the redundancy in the report. My goal is:

    300415 = TRUE
    300697 = TRUE
    301220 = FALSE

    If there is 1 FALSE then they are all false. This report is something I am running once per week. It is keying FALSE if a date of a PO has been changed when it is being pulled from QuickBooks. If the date changed then I want it to say FALSE so I can then go back and see how many POs have been changed. This way I can then evaluate how many POs are never changed vs changed.

    I think this is getting very close to what I need I just don't know how to drop all of the POs into 1 number field and have it = FALSE if it = FALSE even 1 time...

  9. #9
    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,933

    Re: Multiple fields and want only 1 answer = TRUE or = FALSE

    OK can you upload a (clean) sample workbook?

  10. #10
    Registered User
    Join Date
    04-22-2014
    Location
    MT
    MS-Off Ver
    Excel 2014
    Posts
    18

    Re: Multiple fields and want only 1 answer = TRUE or = FALSE

    I would love to. I just don't know how to. I feel like a pain asking, but could you tell me how to do it?

  11. #11
    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,933

    Re: Multiple fields and want only 1 answer = TRUE or = FALSE

    Sure, no problem

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  12. #12
    Registered User
    Join Date
    04-22-2014
    Location
    MT
    MS-Off Ver
    Excel 2014
    Posts
    18

    Re: Multiple fields and want only 1 answer = TRUE or = FALSE

    Awesome! I really like this website and will be using it more often.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    04-22-2014
    Location
    MT
    MS-Off Ver
    Excel 2014
    Posts
    18

    Re: Multiple fields and want only 1 answer = TRUE or = FALSE

    You will see a few other columns which are used to formulate the data or TRUE and FALSE.

    Hopefully seeing this will make sense of what I am trying to accomplish.

    Every time a PO# has been changed I formulated it to show as FALSE.

  14. #14
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Multiple fields and want only 1 answer = TRUE or = FALSE

    I can't think of a way to do it in one formula. How I would do it is copy column A to a separate tab, then go to Data, Remove duplicates. Assuming you copied the data into column A in the new tab, in cell B2 the following forumla would give you what you want: =IF(COUNTIFS('All Together'!A:A,A2,'All Together'!F:F,"FALSE")>0,"FALSE","TRUE"). Copy that formula down and that will tell you if the PO has had any FALSE hits in column F.

  15. #15
    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,933

    Re: Multiple fields and want only 1 answer = TRUE or = FALSE

    Thanks for the file. Can you explain again, what would cause the TRUE to change to FALSE?

  16. #16
    Registered User
    Join Date
    04-22-2014
    Location
    MT
    MS-Off Ver
    Excel 2014
    Posts
    18

    Re: Multiple fields and want only 1 answer = TRUE or = FALSE

    Of course,

    TRUE = if the PO date has not been changed from the previous week. =IF(D2=E2,TRUE,IF(D2<>E2,FALSE))

    FALSE = if the PO date does not match exactly from the previous week. Same formula as above, which would state if the 2 dates do not match exactly then it is considered a FALSE statement.

    I used TRUE and FALSE just because it would be a way to decipher if the information was changed or not changed. What I am trying to find is if a PO has changed ever in its life, be it 2 weeks or 15 weeks, that if it has changed then it will flag a FALSE. I am trying to find how often POs are changed. I want to see how many POs go from being put into the system and not changed vs how many are changed. The goal is to never have them be changed, but as of now I am trying to gather the statistics to see what our current rate of POs being changed in their "lifetime" is.

  17. #17
    Registered User
    Join Date
    04-22-2014
    Location
    MT
    MS-Off Ver
    Excel 2014
    Posts
    18

    Re: Multiple fields and want only 1 answer = TRUE or = FALSE

    Of course,

    True is caused when the PO does not change dates at all.

    False is if the date has changed.

    As I run this report once per week, my goal is to see the life time of a PO# if it ever has the dates changed when I export the data from Quickbooks. I am trying to find the % of POs that are being changed during their lifetime. So I have associated weeks of data in this overall spreadsheet to show me each week and if the data ever = FALSE. If the data does ever = FALSE then the PO#, no matter how many times it has been in the spreadsheet will always = False. I only want the data to default to answer as the PO has change there for it answers false only once.

    I hope that helped explain it.

  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,933

    Re: Multiple fields and want only 1 answer = TRUE or = FALSE

    OK based on your T/F in column F, I used this in G, copied down...
    =IF(COUNTIFS($A$2:$A$3000,A2,$F$2:$F$3000,FALSE)>0,FALSE,"")

    This shows F if the criteria are met

  19. #19
    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,933

    Re: Multiple fields and want only 1 answer = TRUE or = FALSE

    self-deleted forum-induced duplicate post

  20. #20
    Registered User
    Join Date
    04-22-2014
    Location
    MT
    MS-Off Ver
    Excel 2014
    Posts
    18

    Re: Multiple fields and want only 1 answer = TRUE or = FALSE

    It worked great. Thank you

  21. #21
    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,933

    Re: Multiple fields and want only 1 answer = TRUE or = FALSE

    Happy to help and 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)

Similar Threads

  1. [SOLVED] another simple formula
    By oceanside in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-22-2013, 04:57 AM
  2. Replies: 4
    Last Post: 12-07-2012, 11:49 AM
  3. Formula for Discount Percentage
    By Ali H in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 09-18-2012, 04:05 AM
  4. simple formula
    By Shooter in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-06-2005, 04:06 PM

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