D_o_S
06-04-2009, 02:02 AM
Hi all,
I need some help with an excel macro...
I have a spreadsheet in which there are several items, each item having a code.
For example:
Code Name Cost
55020 Home assistance 521
55999 Car ride 777
69100 Workshop 911
Etc....
There is a formula for each of the values after the Name.
I need two things: whenever an item with a 6xxxxxx code comes up, I need the cost formula to be multiplied by -1.
I also have some categories, i.e.
Codes 50000 to 51000 are N1, 51000 to 55000 are N2, etc....
I need some sort of macro/program that will take each value in column A (which is the code), determine which category it is, then transfer to the C cell with the corresponding cost, and add that value to the total category cost...
Anyone?
I need some help with an excel macro...
I have a spreadsheet in which there are several items, each item having a code.
For example:
Code Name Cost
55020 Home assistance 521
55999 Car ride 777
69100 Workshop 911
Etc....
There is a formula for each of the values after the Name.
I need two things: whenever an item with a 6xxxxxx code comes up, I need the cost formula to be multiplied by -1.
I also have some categories, i.e.
Codes 50000 to 51000 are N1, 51000 to 55000 are N2, etc....
I need some sort of macro/program that will take each value in column A (which is the code), determine which category it is, then transfer to the C cell with the corresponding cost, and add that value to the total category cost...
Anyone?