+ Reply to Thread
Results 1 to 5 of 5

Is it possible to subtract records using criteria?

  1. #1
    Forum Contributor
    Join Date
    06-17-2012
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    150

    Is it possible to subtract records using criteria?

    Good morning,

    I have a table that has data like this,

    A 11
    A 34
    B 21
    B 55
    B 65
    C 32
    C 12
    C 43
    C 10

    and would like to subtract rows only when the letters are equal. For example, for the letter B, the query result would look like:

    B 21 0
    B 55 34
    B 65 10


    is this possible in Access? I can achieve this in Excel in 5 seconds but my boss wants it in Access.

    THanks!!!!

  2. #2
    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,883

    Re: Is it possible to subtract records using criteria?

    See if this link helps

    https://support.microsoft.com/en-us/...crosoft-access
    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

  3. #3
    Forum Contributor
    Join Date
    06-17-2012
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    150

    Re: Is it possible to subtract records using criteria?

    Thank you. I will check it out.

  4. #4
    Registered User
    Join Date
    12-16-2019
    Location
    kpk
    MS-Off Ver
    2018
    Posts
    3

    Re: Is it possible to subtract records using criteria?

    Quote Originally Posted by alansidman View Post
    See if this link helps

    yes this link is also useful for me thanks
    Last edited by AliGW; 12-16-2019 at 11:35 AM.

  5. #5
    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,830

    Re: Is it possible to subtract records using criteria?

    Sohailafzal - you can use the reputation system to thank members for posts you've found useful.
    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.

+ 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. Replies: 1
    Last Post: 09-24-2019, 03:36 PM
  2. [SOLVED] Subtract only the matched criteria from row amount
    By Neilesh Kumar in forum Excel General
    Replies: 2
    Last Post: 11-11-2016, 01:08 PM
  3. Subtract rows from a list that meets certain criteria
    By InvalidTxtString in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-08-2016, 02:40 PM
  4. Pulling records matching two criteria and inserting those records into an existing list
    By desertfx41 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-14-2014, 02:00 PM
  5. Excel 2007 : Subtract if a cell meets criteria
    By dmartinez in forum Excel General
    Replies: 3
    Last Post: 07-19-2010, 02:27 PM
  6. How can I subtract from Duplicate Records?
    By mn_excel_91 in forum Outlook Formatting & Functions
    Replies: 1
    Last Post: 09-23-2009, 02:37 AM
  7. Multiple Criteria (add or subtract)
    By MJSlattery in forum Excel General
    Replies: 1
    Last Post: 06-11-2005, 12:38 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