+ Reply to Thread
Results 1 to 16 of 16

Compare columns in one spreedsheet in other spreedsheet

  1. #1
    Registered User
    Join Date
    12-23-2021
    Location
    Porto
    MS-Off Ver
    18.2110.13110.0
    Posts
    7

    Compare columns in one spreedsheet in other spreedsheet

    Compare cells in a column of a spreadsheet with a range of values ​​to see if the cell's value is in the range.
    But the comparison is done in another spreadsheet, that is, I compare the values ​​from the "Samples NR" spreadsheet to the "Res1" spreadsheet.
    The problem is that the function is wrong and I don't know why...

    The function i used is the followed: '=COUNTIF('Amostras NR'!$A$4:'Amostras NR'!$A$123;">="0;'Amostras NR'!$A$4:'Amostras NR'!$A$123;"<"5)
    I tried with and without the "$" and is wrong either way. Maybe i am using the wrong function?

    I aprecciate your help.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by antonioduarte2001; 12-24-2021 at 05:44 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Compare columns in one spreedsheet in other spreedsheet

    Hi
    There are instructions at the top of the page on how to post a sample sheet.Thanks

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Compare columns in one spreedsheet in other spreedsheet

    Do you mean different sheets in the same file, or different files?

    Please read the yellow banner (top) and post a sample file (or files).
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    12-27-2012
    Location
    Việt Nam
    MS-Off Ver
    Excel 365
    Posts
    28

    Re: Compare columns in one spreedsheet in other spreedsheet

    More than one condition, you use the COUNTIFS function, argument criteria incorrect.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-23-2021
    Location
    Porto
    MS-Off Ver
    18.2110.13110.0
    Posts
    7

    Re: Compare columns in one spreedsheet in other spreedsheet

    Done my friend

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Compare columns in one spreedsheet in other spreedsheet

    Those are non-editable pictures of files. I asked you to upload Excel file(s)

  7. #7
    Registered User
    Join Date
    12-23-2021
    Location
    Porto
    MS-Off Ver
    18.2110.13110.0
    Posts
    7

    Re: Compare columns in one spreedsheet in other spreedsheet

    What argument criteria?

  8. #8
    Registered User
    Join Date
    12-23-2021
    Location
    Porto
    MS-Off Ver
    18.2110.13110.0
    Posts
    7

    Re: Compare columns in one spreedsheet in other spreedsheet

    done, sorry

  9. #9
    Registered User
    Join Date
    12-27-2012
    Location
    Việt Nam
    MS-Off Ver
    Excel 365
    Posts
    28

    Re: Compare columns in one spreedsheet in other spreedsheet

    Quote Originally Posted by antonioduarte2001 View Post
    What argument criteria?
    Refer: https://support.microsoft.com/en-us/...c-aa8c2a866842
    Attachment 760610
    You wrote like that: ">="0, "<"5

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Compare columns in one spreedsheet in other spreedsheet

    In E8:


    =COUNTIFS('Amostra TR'!A:A,">="&A8,'Amostra TR'!B:B,"<"&B8)

    In beautiful Porto... you will need ; instead of , see the file.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    12-23-2021
    Location
    Porto
    MS-Off Ver
    18.2110.13110.0
    Posts
    7

    Re: Compare columns in one spreedsheet in other spreedsheet

    yes, it works... but i just want to compare the column A, not the B. My goal is to see if the value in each cell in the column is in the range of [0,5]
    Ive corrected the function but it still doesnt work, see the new file on the post please
    Indeed, Porto is beautiful!

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Compare columns in one spreedsheet in other spreedsheet

    ???

    =COUNTIFS('Amostra TR'!A:A,">="&A8,'Amostra TR'!A:A,"<"&B8)

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Compare columns in one spreedsheet in other spreedsheet

    COUNTIFS works perfectly well with whole column references. You do not need to repeat the sheet name every time

    'Amostra TR'!A:A is correct

    'Amostra TR'!A:'Amostra TR'!A is NOT correct

  14. #14
    Registered User
    Join Date
    12-23-2021
    Location
    Porto
    MS-Off Ver
    18.2110.13110.0
    Posts
    7

    Re: Compare columns in one spreedsheet in other spreedsheet

    still doesnt work... , now i have: '=COUNTIFS('Amostras NR'!A4:A123,">=0",'Amostras NR'!A4:A123,"<5")

  15. #15
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Compare columns in one spreedsheet in other spreedsheet

    It is working in this sheet (and is giving the correct answer).
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    12-23-2021
    Location
    Porto
    MS-Off Ver
    18.2110.13110.0
    Posts
    7

    Re: Compare columns in one spreedsheet in other spreedsheet

    I will use that sheet, thank you! merry xmas!

+ 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. Need help getting from spreedsheet to report
    By sendtobrad in forum Excel General
    Replies: 1
    Last Post: 09-03-2019, 11:52 AM
  2. Grade Spreedsheet
    By dpugh95 in forum Excel General
    Replies: 6
    Last Post: 11-12-2016, 12:16 AM
  3. [SOLVED] Spreedsheet with job #s
    By Nedherb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-09-2013, 11:33 PM
  4. spreedsheet help
    By loverbwoy in forum Excel General
    Replies: 1
    Last Post: 04-02-2006, 12:57 PM
  5. need help with spreedsheet formula
    By systel2 in forum Excel General
    Replies: 2
    Last Post: 02-13-2006, 12:49 PM
  6. large spreedsheet
    By doctor z in forum Excel General
    Replies: 1
    Last Post: 01-09-2005, 11:04 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