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

vba to make multiplication to specific headers

RAM72

Member
Hi

Looking vba t o make multiplication calculation from specific headers .

The situation is follows for header litres(q) check qty columns (k) , multiply it to header L and M .

The second situation is a bit tricky

either lookup in column i or J , is there is data in I ,then multiply to columns q (litres)and fill column m

otherwise lookup in j , multiply column L and insertdata in column N to 3 decimal places

If there is no data in column G and H , then do nothing
 

Attachments

  • sugar alcohol.xlsx
    30.3 KB · Views: 7
L2: =K2*H2
M2: =Iferror(L2*I2,0)
N2: =L2*J2

The apply a custom Number Format to L2:M2 of #,###;-#,###;;@
then apply a custom number format to N2 of #,###.###;-#,###.###;;@
Then copy L2:N2 down to Row 42

see attached file:

Note you have errors in your data in I41:I42
 

Attachments

  • sugar alcohol.xlsx
    26.6 KB · Views: 5
Back
Top