Hello everyone,
Im going crazy trying to make an excel sheet that is kinda out of my league.
I have different worksheets with data arranged as follows, beggining at B5
Worksheet 1
Milk....2
Eggs...3
Yest...1
Worksheet 2
Milk....2
Eggs...3
Yest...1
Lettuce...4
My objective was to create another table that would sum the different ingredients, so i made a column with all the possible ingredients next to this crazy formula that would refer to the sheet name in a dropdown list with INDIRECT.
=SUM(LOOKUPV(D24;INDIRCT("'"&$E$5&"'!"&"B5:C26");2;0);LOOKUPV(D24;INDIRECT("'"&$E$6&"'!"&"B5:C26");2;0)
Ok, it KINDA works. Problem is, if one of the ingredients is not on both worksheets (see: Lettuce) its going to give me error instead of 4. Is there a way to fix that?
Im going crazy trying to make an excel sheet that is kinda out of my league.
I have different worksheets with data arranged as follows, beggining at B5
Worksheet 1
Milk....2
Eggs...3
Yest...1
Worksheet 2
Milk....2
Eggs...3
Yest...1
Lettuce...4
My objective was to create another table that would sum the different ingredients, so i made a column with all the possible ingredients next to this crazy formula that would refer to the sheet name in a dropdown list with INDIRECT.
=SUM(LOOKUPV(D24;INDIRCT("'"&$E$5&"'!"&"B5:C26");2;0);LOOKUPV(D24;INDIRECT("'"&$E$6&"'!"&"B5:C26");2;0)
Ok, it KINDA works. Problem is, if one of the ingredients is not on both worksheets (see: Lettuce) its going to give me error instead of 4. Is there a way to fix that?