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

Count, Index, match and Select

Hi,

I have 12 no of products with different formulation and the formulation by 12 no of Raw Materials, each raw materials have unique code. In attachment sheet name Formulation you will find the same.

I have to prepare the batch card as in the attached sheet name Batch Card.

If i type the product name then i want to get the batch card sheet as attached.

Can you suggest proper formula to get the RM Code (A8 to A10), Raw Material name (B8 to B10) and Appropriate percentage (E8 to E10) in Batch Card sheet, from formulation sheet.

One more challenge is, Some product have only three raw materials but some have 4, 6 and more.

Please do the needful! Thanks in Advance!
 

Attachments

  • Formula.xlsx
    14 KB · Views: 6
Hi,

I have 12 no of products with different formulation and the formulation by 12 no of Raw Materials, each raw materials have unique code. In attachment sheet name Formulation you will find the same.

I have to prepare the batch card as in the attached sheet name Batch Card.

If i type the product name then i want to get the batch card sheet as attached.

Can you suggest proper formula to get the RM Code (A8 to A10), Raw Material name (B8 to B10) and Appropriate percentage (E8 to E10) in Batch Card sheet, from formulation sheet.

One more challenge is, Some product have only three raw materials but some have 4, 6 and more.

Please do the needful! Thanks in Advance!
Please find the solution in attached sheet.

Hope you will find it useful.

Thanks & Regards,
CMA Vishal Srivastava
 

Attachments

  • Index Match.xlsx
    14.4 KB · Views: 11
Mr Vishal

As per your attached file i have got the results, But i've added one more condition of origin next to the product name, After several trying i didn't get the results properly. the error sheet attached here for your suggestion or modification.

Please do the needful!
 

Attachments

  • Batch Card.xlsx
    14.8 KB · Views: 1
Mr Vishal

As per your attached file i have got the results, But i've added one more condition of origin next to the product name, After several trying i didn't get the results properly. the error sheet attached here for your suggestion or modification.

Please do the needful!
Hi Anbuselvam,

Just small tweak needed.

I have made the changes. Please find the same in attached sheet.


Thanks & Regards,
CMA Vishal Srivastava
 

Attachments

  • Index Match_Batch Card.xlsx
    14.8 KB · Views: 3
Mr Vishal

I've enter the below formulation and i press control shift enter but i didn't get the results what you got in previous attachment. Please check the formula and suggest.

I didn't understand the -1 and -2 in the formulation before Row function, also what is 1:1 in the row function? please explain for me so that i can adopt the formulation accordingly.

=IFERROR(INDEX(Formulation!$C$2:$AE$2,,SMALL(IF(Formulation!$A$5:$A$118&Formulation!$B$5:$B$118='Batch Card'!$D$5:$E$5&'Batch Card'!$F$5,IF(Formulation!$C$5:$AE$157<>"",COLUMN(Formulation!$C$2:$AE$2)-2)),ROW(1:1))),"")

Thanks in Advance!
 
Mr Vishal

I've enter the below formulation and i press control shift enter but i didn't get the results what you got in previous attachment. Please check the formula and suggest.

I didn't understand the -1 and -2 in the formulation before Row function, also what is 1:1 in the row function? please explain for me so that i can adopt the formulation accordingly.

=IFERROR(INDEX(Formulation!$C$2:$AE$2,,SMALL(IF(Formulation!$A$5:$A$118&Formulation!$B$5:$B$118='Batch Card'!$D$5:$E$5&'Batch Card'!$F$5,IF(Formulation!$C$5:$AE$157<>"",COLUMN(Formulation!$C$2:$AE$2)-2)),ROW(1:1))),"")

Thanks in Advance!

Which type of error you are getting now?

I am getting exact results as per your need.

You may post sample workbook.

CMA Vishal Srivastava
 
Mr. Vishal

Please check the file and suggest to fix the error.
Try following formula and drag it down:

{=IFERROR(INDEX(Formulation!$C$2:$AE$2,,SMALL(IF(Formulation!$A$6:$A$17&Formulation!$B$6:$B$17='Batch Card'!$D$5&'Batch Card'!$F$5,IF(Formulation!$C$6:$AE$17<>"",COLUMN(Formulation!$C$2:$AE$2)-2)),ROW(1:1))),"")}

Thanks & Regards,
CMA Vishal Srivastava
 
Last edited:
Mr Vishal

Sorry to disturb you!

As you suggest i've copy and paste the same, find the attached sheet but i didn't get the result.

Please do the needful!
 

Attachments

  • Model Batch Card.xlsx
    52.9 KB · Views: 1
Please find the result in attachment above.

Modify the code accordingly.

Hope you will get answer.

Thanks & Regards,
CMA Vishal Srivastava
 

Attachments

  • Model Batch Card1.xlsx
    53.1 KB · Views: 5
Last edited:
Mr Vishal

Thanks for your valuable reply

As per last attached sheet i've changed the product name and its not working!

please take a look once again!
 

Attachments

  • Model Batch Card1.xlsx
    52.8 KB · Views: 0
Mr Vishal

Thanks for your valuable reply

As per last attached sheet i've changed the product name and its not working!

please take a look once again!
Hi,

I have rechecked the file and modified the formula as per your need.

Please find the same as an attachment above.

Please feel free to contact for any further query.

Thanks & Regards,
CMA Vishal Srivastava
 

Attachments

  • Model Batch Card1.xlsx
    53.1 KB · Views: 2
Hi,

Again i've selected the different product name from drop down list but its not working. please check the attachment
 

Attachments

  • Model Batch Card1 (1).xlsx
    53.1 KB · Views: 0
Hi,

Again i've selected the different product name from drop down list but its not working. please check the attachment
Hi,

Thanks for the update.

I have made small modification to the formula.

Please check and confirm whether it resolves your issue or not.


Thanks & Regards,
CMA Vishal Srivastava
 

Attachments

  • Model Batch Card2.xlsx
    53.1 KB · Views: 5
Back
Top