Question : Populate value for the first item

Dear experts,

Dear experts,

My example is in the attached sheet.

Need a formulae which can look up for a variable in sheet 'lookup' column A in column A of sheet Data and populate the value in the first occuring variable in sheet 'lookup'.
The remaining variables should be assinged zero,
hence the total in cell B13 is sheet 'Data' and cell B33 in sheet 'Lookup' should be the same.

Kinldy provide excel driven formulae.

thank you,



Attachments:
 
Allocate value for the first data item
 

Answer : Populate value for the first item

Hello Excelleraner,

Try this formula in Look up B4 copied down

=IF(COUNTIF(A$4:A4,A4)=1,VLOOKUP(A4,Data!A$4:B$11,2,0),0)

regards, barry

Random Solutions  
 
programming4us programming4us