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

Multiple match and multiply

Thomas Kuriakose

Active Member
Respected Sirs,

We have a file where there are categories and names which need to be matched and counted and if the counts are within a range it should be multiplied with the respective rates -

Category in A2:A63 and more
Name in B2:B63 and more

For a specific name the categories need to be counted -

If for Aman the count of categories of 200 is between 1-15 multiply price (Column C)by I4 = 90
If for Aman the count of categories of 200 is greater than 15 multiply price (Column C) (by J4 = 90
If for Raj the count of categories of 300 is between 1-15 multiply price (Column C) ( by I3 = 100
If for Aman the count of categories of 300 is greater than 15 multiply price (Column C) by J3 = 150

Kindly find attached the file for your reference.

Thank you very much,

with regards,
thomas
 

Attachments

  • Match multiple.xlsx
    10.4 KB · Views: 7
Respected Sir,

Thank you very much for the solution provided.

Kindy check the values for E2:E7, the values are not multiplying by 100 in this case.

Sir, also, if there are more categories to be added, can we use the same solution.

Thank you very much,

with regards,
thomas
 

Attachments

  • Match multiple.xlsx
    11.7 KB · Views: 1
Respected Sir,

I missed to mention. The count of Category (200) in A2 to A17 for name Aman is 16 and this is greater than 15, so it should multiply by 100 (J4).

Thank you very much,

with regards,
thomas
 
Respected Sir,

Thank you very much for the solution provided for this query.

This worked perfectly.

Much appreciated,

with regards,
thomas
 
Respected Sir,

One small issue, it is not taking both values for less than equal to 15 and greater than 15. In some cases it is taking one value.

Kindly find attached the file for your reference.

Thank you very much,

with regards,
thomas
 

Attachments

  • Copy of Match multiple.xlsx
    13.8 KB · Views: 5
hii,

try below formula..using helper column

pfa sheet light blue highlighted ..

=IF(AND(F2<15,A2=200),C2*90,IF(AND(F2>15,A2=200),C2*100,IF(AND(F2<15,A2=300),C2*100,IF(AND(F2>15,A2=300),C2*150))))


Thanks
rahul shewale
 

Attachments

  • Copy of Match multiple.xlsx
    16.5 KB · Views: 3
Respected Sir,

Thank you for this solution, but we need to match category and name for each row. The actual data has 38k rows.

The count should be for names with respect to the category and if both match then count the number of instances to be verified with <=15 or >15.

Thank you very much once again,

with regards,
thomas
 
Hii
please check.

=IF(AND(COUNTIFS($A$2:$A$63,A2,$B$2:$B$63,B2)<15,A2=200),C2*90,IF(AND(COUNTIFS($A$2:$A$63,A2,$B$2:$B$63,B2)>15,A2=200),C2*100,IF(AND(COUNTIFS($A$2:$A$63,A2,$B$2:$B$63,B2)<15,A2=300),C2*100,IF(AND(COUNTIFS($A$2:$A$63,A2,$B$2:$B$63,B2)>15,A2=300),C2*150))))

regard
Rahul shewale
 

Attachments

  • Copy of Match multiple.xlsx
    17.6 KB · Views: 3
Respected Sir,

Thank you very much for the revised formula.

I tried deleting some rows in the first batch (A2:A13) from A2:A17 and found the values are not getting updated.

Kindly check the attached.

Thank you very much,

with regards,
thomas
 

Attachments

  • Copy of Copy of Match multiple.xlsx
    16.5 KB · Views: 1
Back
Top