+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    03-19-2010
    Location
    singapore
    MS-Off Ver
    Excel 2003
    Posts
    71

    condition adding

    i have a list below:

    AD123FGAC----1
    AB123FGAC----2
    AG123FBAC----1
    AD123FEAC----1
    AB123FEAC----1

    I need a formula can be total the quantity according FG , FB, FE(word after the number only)
    AG123FBAC may confuse is FB or FG beacause having G on the front.

    thanks you.
    Attached Files Attached Files

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    18,225

    Re: condition adding

    Put this in C10, then copy down:

    =SUMIF($B$2:$B$6, "*" & B10 & "*", $C$2:$C$6)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    03-19-2010
    Location
    singapore
    MS-Off Ver
    Excel 2003
    Posts
    71

    Re: condition adding

    thanks JBeaucaire. The result i have get is confuse already because FG get result quantity is 3, the correct is 2 only.
    Does have formula will check character number 6 and 7? the part number will always be same 9 digit .

    please help.

    SORRY, RESULT 3 IS CORRECT. SORRY TO ALL OF U.
    Last edited by choy96; 03-22-2010 at 11:23 PM.

  4. #4
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    18,225

    Re: condition adding

    The sum of the FG quantities is 3, not 2.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  5. #5
    Registered User
    Join Date
    03-19-2010
    Location
    singapore
    MS-Off Ver
    Excel 2003
    Posts
    71

    Re: condition adding

    sorry, if i explain wrongly. i need the formula to check the digit no.6 and no.7 only. The other digit no. will not check.
    AG123FBAC
    A-digit no.1
    G-digit no.2
    1-digit no.3
    2-digit no.4
    3-digit no.5
    F-digit no.6
    B-digit no.7
    A-digit no.8
    C-digit no.9

  6. #6
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,379

    Re: condition adding

    If needed you can make more specific re: char position with use of ? wildcard, ie:

    C10: =SUMIF($B$2:$B$7,"?????"&$B10&"*",$C$2:$C$7)

    but based on your sample JB's prior suggestion works - the sum of quantity for "FG" is most definitely 3 (the frequency would be 2).

  7. #7
    Registered User
    Join Date
    03-19-2010
    Location
    singapore
    MS-Off Ver
    Excel 2003
    Posts
    71

    Re: condition adding

    i have the formula to subtotal individual FG, FB, FE. can i have another formula that subtotal the quantity is not FG and FE? because got many part number such as FC, FV ...but got 2 type only, FG and FE consider type 1 , other will be type 2.

    please help

  8. #8
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,379

    Re: condition adding

    It's unclear which of the suggestions you're using but (without knowing all of the particulars) one route might be:

    =SUM(SUMIF($B$2:$B$7,{"<>??????FG*","<>??????FE*"},$C$2:$C$7))

    Or alternatively simply calculate the SUM of C2:C7 and subtract from that the results for FE & FG which you've already calculated.

  9. #9
    Registered User
    Join Date
    03-19-2010
    Location
    singapore
    MS-Off Ver
    Excel 2003
    Posts
    71

    Re: condition adding

    thanks very much !!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0