Hi all,
I have created an Excel files with several macros in it, but this one got me puzzled.
There are two columns and about 70 rows in the file. Column A contains dollar values and column B contains number of units. There are three types of units: a, b, c. Unit a costs 21, unit b costs 31, unit c costs 50. So the idea is to extract how many a, b and c units there are in the rows.
The way I want to do is to:
IF(C2/21=E2, ADD E2 to E76), IF(C2/31=E2, ADD E2 to E77), IF(C2/50=E2, ADD E2 to E78)
The macro will need to do the above for each row
I cant however figure how to make it go through all rows and also how to make it add to the existing cell
Any help is appreciated
Thanks!
Bookmarks