+ Reply to Thread
Results 1 to 7 of 7

Access data with 3 conditional

  1. #1
    Registered User
    Join Date
    12-09-2020
    Location
    Da Lat
    MS-Off Ver
    2019
    Posts
    23

    Question Access data with 3 conditional

    Hello Everyone. I have a proble with access data.
    I have to track the import-export of semi-finished products at all stages of each production order corresponding to each type of product.
    I wish to access by product type name by the time period to return the final value corresponding to the purchase order and corresponding stage.

    * Result 1: When I am searching by product type, it will return the last result of the inventory number of the Purchase order finally with Corresponding state.
    For example: BN001 product type has three production orders 3616090/3616091/3616093, it will return the Purchase order finally result of balance at the last paragraph of order 3616093.

    * Result 2: When searching by Product Type, the results of the last total inventory of the stages corresponding to the production orders of that product type
    Example: Product type BN001 has three Corresponding state 3616090/3616091/3616093, then the final balance result will be returned at all stages of all production orders of product line BN001 as at the Mix stage. will be the total final balance at the mixing step of the three purchase orders

    Thank you so much.
    Attached Files Attached Files

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

    Re: Access data with 3 conditional

    First Part:

    =SUMIFS(G:G,D:D,$L$1,C:C,$L$2,B:B,$K4)

    Second part:

    =SUMIFS(G:G,D:D,$L$7,A:A,">="&L$8,A:A,"<="&$L$9,B:B,$K12)

    in the second part, your expected answers for A & B were incorrect.
    Attached Files Attached 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

  3. #3
    Registered User
    Join Date
    12-09-2020
    Location
    Da Lat
    MS-Off Ver
    2019
    Posts
    23

    Re: Access data with 3 conditional

    Thank you for support.

    In Result 1,I want value in L2; K4; K5 will auto when I choose value in L1.

    In Result 2, I dont want sum total, I want to sum last value.

    Hope you reply soon. Thank kiu

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,531

    Re: Access data with 3 conditional

    Hello phamanh1998 and Welcome to Excel Forum.
    Try the following in cell L2:
    Please Login or Register  to view this content.
    Glenn's formula for L4:L5 works for the sample data, however I can see that if the data ended at row 5 there would be a problem so I offer the following alternative:
    Try the following in cell L4 and then drag the fill handle down to cell L5:
    Please Login or Register  to view this content.
    I don't understand what "In Result 2, I dont want sum total, I want to sum last value" means.
    Perhaps if you could tell us the cells summed to yield 63 in cell L12 then we will better understand.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    12-09-2020
    Location
    Da Lat
    MS-Off Ver
    2019
    Posts
    23

    Re: Access data with 3 conditional

    Thank for answer. In Result 2, I dont want sum total, I want to sum last value" that means I want to get the last value of Corresponding Stage to Purchase order of Product type.
    Sample: BN001 i want sum the last value of A to Corresponding Stage 3616090,3616091, 3616093 respectively G4;G6;G13 ( sum L12=50 not 63).
    Hope you reply soon. Thank kiu
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Access data with 3 conditional

    One helper column H created.
    In H2 then copy down

    =IF(MAX(COUNTIFS($D$2:$D$18,$D2,$C$2:$C$18,$C2,$B$2:$B$18,$B2))=COUNTIFS($D$2:$D2,$D2,$C$2:$C2,$C2,$B$2:$B2,$B2),1,"")

    In M12 then copy down

    =SUMIFS($G$2:$G$18,$D$2:$D$18,$M$7,$B$2:$B$18,$L12,$H$2:$H$18,1)
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  7. #7
    Registered User
    Join Date
    12-09-2020
    Location
    Da Lat
    MS-Off Ver
    2019
    Posts
    23

    Re: Access data with 3 conditional

    Thank you so much.

+ 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. trying to update access after data from access is imported to excel
    By justlearning123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2015, 04:52 AM
  2. trying to push data from excel to access but access not updating
    By todaychris in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-04-2014, 05:06 AM
  3. Excel 2010 userform to access and edit the data in MS ACCESS DB tables
    By anand_y59 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-10-2012, 07:46 AM
  4. Saving an Access for with Subforms as a Data Access Page?
    By danny2000 in forum Access Tables & Databases
    Replies: 1
    Last Post: 04-12-2009, 03:29 AM
  5. Importing data from Access to Excel, but I need to vary the table from Access
    By Liz L. in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-05-2006, 09:15 PM
  6. importing data from access-database access file
    By amrezzat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-22-2005, 04:25 PM
  7. Conditional Formatting not applied to data exported from Access
    By Mark A in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-24-2005, 08:05 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