I want to know about vbscript with macros

Closed
san` - Jul 21, 2009 at 11:18 AM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Jul 22, 2009 at 08:59 PM
Hello,
i have two excel sheet in that one is filled of details like empname and shifttype. with this information i want to fill Rupees colum in second sheet condition is if shift a or b rupees 100 and if shift c rupees 400. I dont know to write a code in vbscript. please, help me to write the code.

1 response

venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 811
Jul 22, 2009 at 08:59 PM
why do you want vb scrip
in sheet 2 in any cell type this formula

=IF(OR(Sheet1!B2="a",Sheet1!B2="b"),100,IF(Sheet1!B2="c",400,""))
if necessary copy this formula down
0