Question: The following Excel image has a VBA program (see below). What will be the result after the program is executed? Any cells not displayed are

 The following Excel image has a VBA program (see below). What
will be the result after the program is executed? Any cells not
displayed are currently empty, and any cells with numbers are formatted numeric

The following Excel image has a VBA program (see below). What will be the result after the program is executed? Any cells not displayed are currently empty, and any cells with numbers are formatted numeric Sub GDP0 tot=0 finalrow = Cells ( Rows.Count, 1) . End (xUp). Row For i= finalrow To 6 Step - 3 If Cells (i,1).Value =2005 Or Cells(i, 1) Value =1990 Then tot =tot+Cells(i,5) Else tot = tot + Cells(i, 3).Value End if Next i End Sub 31,025 2,100 12.090 The following Excel image has a VBA program (see below). What will be the result after the program is executed? Any cells not displayed are currently empty, and any cells with numbers are formatted numeric Sub GDP0 tot=0 finalrow = Cells ( Rows.Count, 1) . End (xUp). Row For i= finalrow To 6 Step - 3 If Cells (i,1).Value =2005 Or Cells(i, 1) Value =1990 Then tot =tot+Cells(i,5) Else tot = tot + Cells(i, 3).Value End if Next i End Sub 31,025 2,100 12.090

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!