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.
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 theicon 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!)
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.
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 theicon 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!)
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
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).
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
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
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.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
thanks very much !!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks