In the final stage of my parsing project--the last step I am having trouble with. What I am trying to do is as follows:
I want the procedures to VLOOKUP the value "Total" in column "A". When the proc finds a line containing the word "Total", I went the proc to place a formula in column E of the same line that subtracts the department "<900" total from the column "A" total.
It's probably easier to look at the problem--I have a "before" and "after" spreadsheet attached.
Any help very much welcome.
Thanks,
Reb
Last edited by Rebel_42MDx; 03-17-2010 at 02:13 AM.
=IF(AND(A2<>"Grand Total",ISNUMBER(SEARCH("Total",A2))),D2-LOOKUP(2,1/(B$1:B1="<900 Total"),D$1:D1),"")
copied down
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
I'm sorry--this formula doesn't work... Is there a way to do this as a procedure instead of a formula?
Many thanks for the help--I'm slowly starting to learn VBA--I think!
Thanks,
Rebel
I can't help you with your VBA request but I wanted to show you that the formula does work for your data.. see column F in the attached compared to your column E
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Yes, it does work! For some reason it returned an error when I tried to paste the formula--I copied to same column you did then deleted the column to the left and it works like a charm.
Nice formula--thanks again for the help!
R
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks