• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

how to seperate 650 ml sold qty and 330 ml sold qty with formula

Hi ,

For the first , you can use the following formula :

=SUMIF($A$2:$A$28,"*" & "650 ML" & "*",$B$2:$B$28)

The correct answer is 324 , since 279 does not include the quantity in row 21.

For the second , the situation is complicated by the need to recognize the 3 and the 5 in the description involving pints and buckets.

Narayan
 
Hi ,

For the second , try this :

=SUMIF($A$2:$A$28,"*" & "330 ML" & "*",$B$2:$B$28) + SUM(IF(ISNUMBER(SEARCH("PINTS",$A$2:$A$28)),$B$2:$B$28) * IF(ISNUMBER(SEARCH(" 3 ",$A$2:$A$28)),3,IF(ISNUMBER(SEARCH(" 5 ",$A$2:$A$28)),5,0)))

This is an array formula , to be entered using CTRL SHIFT ENTER.

Narayan
 
Back
Top