+ Reply to Thread
Results 1 to 4 of 4

Need a complex formula to categorised and return the value by division

  1. #1
    Registered User
    Join Date
    03-13-2024
    Location
    singapore
    MS-Off Ver
    2017
    Posts
    1

    Need a complex formula to categorised and return the value by division

    I'm not sure whether this can be done in excel so i posted the question here.TABLE.jpg

    The main problem is the 3 BARCODE A111, A222 and A333.
    These barcode will return quantity as 1 in any main id.

    However, when these 3 barcodes are parked under APPLE there will be a special requirement on how the quantities to be calculated.

    For SO1111, Apple is captured under Fruit column, with all 3 barcodes above captured as well, the quantity is returned with 1 divide by 3 equals to 0.33 each.
    For SO2222, since only 2 of 3 codes present, 1 will be divide by 2 and return 0.5 instead.
    For SO3333, since it's not appleso all value will be returned as 1.

    By merely formula is this doable?
    Last edited by ROCH92; 03-13-2024 at 11:19 PM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,633

    Re: Need a complex formula to categorised and return the value by division

    Not too difficult.
    Try to upload a sample file pls.
    Quang PT

  3. #3
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Need a complex formula to categorised and return the value by division

    A possibility.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  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. 2412 (Windows 11 24H2 64-bit)
    Posts
    88,706

    Re: Need a complex formula to categorised and return the value by division

    Administrative Note:

    Is your forum profile showing the Excel PRODUCT that you need this to work for?

    Members will tailor the solutions they offer to the Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your product is for Mac, please also state this.

    The three most recent Excel products are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the version number in your profile (e.g. MS365 Version 2306). This is in the About Excel section further down the Account page.

    Thanks.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    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: 3
    Last Post: 07-08-2020, 02:07 AM
  2. Data categorised formula
    By samarbac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-12-2020, 07:06 PM
  3. HELP: I want (VLOOKUP) to add up categorised spending by date
    By ekoh in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-03-2018, 08:58 AM
  4. [SOLVED] Complex Offset Formula and Return Values - Time between parts
    By ironfelix717 in forum Excel Formulas & Functions
    Replies: 46
    Last Post: 12-28-2017, 05:08 PM
  5. Categorised checklists
    By Janbi in forum Excel General
    Replies: 2
    Last Post: 10-14-2016, 09:29 AM
  6. Complex array formula takes long time to return results
    By holmes123 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-02-2012, 05:36 PM
  7. Categorised data into different sheets
    By Jentan in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-28-2006, 02:15 PM

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