+ Reply to Thread
Results 1 to 4 of 4

Excel MS Query, is it possible disable query result to show only one row if ....

  1. #1
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Excel MS Query, is it possible disable query result to show only one row if ....

    I have a data where there are two rows which has exactly the same value in each column.
    For example the data source like this :
    Row 1 : Col-A : A01, Col-B : 123, Col-C : January, Col-D : 5 kg, Col-E : Fish
    Row 2 : Col-A : A01, Col-B : 123, Col-C : January, Col-D : 5 kg, Col-E : Fish

    However after the resulted query is only one of the row.

    I know within the data source I can just change the kilos to 10 kg in one row, then delete the other row.
    But this give me a problem, because there are quite many of that kind of situation (different row but has the same value in each column).

    How come the data is like that (two rows with the exact same value in each column) is difficult for me to explain,
    as this is another people who input it to the data source whom I don't know why, he prefer to write it for the second time in a new row
    rather than change the kilos to 10kg to the existing row.

    I'm hoping that there is a thing I can do, in order the MS Query result will not remove the duplicate row, but include the row as it is.
    So, I wonder is this possible ?

    Any kind of help would be greatly appreciated.
    Thank you in advanced.

  2. #2
    Registered User
    Join Date
    03-31-2006
    MS-Off Ver
    Excel 2003
    Posts
    76

    Re: Excel MS Query, is it possible disable query result to show only one row if ....

    It depends on your query in MS Query. What is the text?

  3. #3
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Excel MS Query, is it possible disable query result to show only one row if ....

    Quote Originally Posted by 5631 View Post
    It depends on your query in MS Query. What is the text?
    Do you mean the text like this ?
    Please Login or Register  to view this content.
    And in the connection properties, the connection is like this :
    Please Login or Register  to view this content.
    Thank you.
    Last edited by karmapala; 07-18-2019 at 05:06 PM.

  4. #4
    Registered User
    Join Date
    03-31-2006
    MS-Off Ver
    Excel 2003
    Posts
    76

    Re: Excel MS Query, is it possible disable query result to show only one row if ....

    I mean Select command. It can include group by expression to exclude duplicate records.

+ 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. Power Query - calculated true or false show result of table????
    By janljan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-02-2018, 11:23 PM
  2. [SOLVED] Run a 2nd query to show what is NOT displayed in the f1st query
    By MissDB in forum Access Tables & Databases
    Replies: 2
    Last Post: 10-05-2016, 07:43 AM
  3. Web query and query by VBA produce different result than URL in browser
    By 6StringJazzer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-09-2013, 03:43 PM
  4. ACCESS query result show "#ERROR',How can i replace it with 0
    By andrewyang in forum Access Tables & Databases
    Replies: 2
    Last Post: 12-05-2012, 06:18 PM
  5. how to query mysql and get result into excel?
    By xianwinwin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-04-2007, 10:21 PM
  6. Replies: 0
    Last Post: 03-15-2006, 09:40 PM
  7. how to disable automatic query refresh in excel?
    By sid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2005, 10:06 AM

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