+ Reply to Thread
Results 1 to 5 of 5

Google Sheets: <=0 vs < =' ' in a query

  1. #1
    Registered User
    Join Date
    12-31-2019
    Location
    Boston
    MS-Off Ver
    365
    Posts
    5

    Google Sheets: <=0 vs < =' ' in a query

    I have Google sheets that track payroll for my salespeople. I had six copies, 1 for each employee. The tab that pulls in each employee's sales uses this formula =QUERY(Data!A:H,"Select A, C, D, E, F where H<=0 AND (D = 'OPS H&S Follow Up' OR D = 'Signed & Sold')",1) which was written by the people at Excel Chat. I recently hired 2 new team members so I copied an existing payroll Google sheet. Now that formula doesn't work. I reached out to Excel Chat and they re-wrote the formula to be =QUERY(Data!A:H,"Select A, C, D, E, F where H<='' AND (D = 'OPS H&S Follow Up' OR D = 'Signed & Sold')",1) which is the same but uses H is less than or = ' ' instead of less than or = 0. That formula works for the 2 new employees but NOT for the 6 existing employees. I've tried clearing the formatting on the Data! tab of both documents in case it was a formatting issue but that doesn't help. Can anyone help me figure out why I have 8 copies of the same document and 6 need one formula while 2 need a different formula?

    Thanks!

  2. #2
    Valued Forum Contributor Haluk's Avatar
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (22 H2) 64 Bit
    Posts
    1,147

    Re: Google Sheets: <=0 vs < =' ' in a query

    Can you post your shared Google Sheets URL to see what you have?

  3. #3
    Registered User
    Join Date
    12-31-2019
    Location
    Boston
    MS-Off Ver
    365
    Posts
    5

    Re: Google Sheets: <=0 vs < =' ' in a query

    Unfortunately, I can't because I'm new and can't post links yet. I've emailed the mods to ask that the restriction be lifted.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Google Sheets: <=0 vs < =' ' in a query

    I see no message from you to us anywhere.

    The restriction lifts once you have 10 posts. It will NOT (and cannot!) be lifted sooner. However, this is why we have the attachment function. Read the first yellow banner above to find out how to attach your workbook directly here. There are no restrictions for attachments.

    Alternatively, post the URL with a few gaps in it.
    Last edited by AliGW; 07-28-2021 at 06:57 AM. Reason: Typo
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Google Sheets: <=0 vs < =' ' in a query

    please try this combination formula:

    Please Login or Register  to view this content.

+ 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. Query in Google Sheets
    By PhilippBonnie in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 03-26-2021, 10:18 PM
  2. Google Sheets Array Query
    By AncestryGuy in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 03-26-2021, 06:24 AM
  3. Google Sheets query function replacement
    By Ollie Frith in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-09-2019, 05:41 PM
  4. [SOLVED] Converting Google Sheets QUERY to Correct Excel Formula
    By davis909 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-17-2017, 09:14 AM
  5. Google Sheets QUERY How can I do the same in Excel?
    By Ziggy21 in forum Excel General
    Replies: 12
    Last Post: 10-04-2015, 07:54 PM
  6. [SOLVED] Converting Google Sheets document with query to Excel
    By playmate in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 08-04-2015, 10:18 PM
  7. query w/ minimum requirement in google sheets
    By alansoftpublisher in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 12-14-2014, 04:59 AM

Tags for this Thread

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