Hi Excel Forums.
I am posting again as my previous post did not provide enough information for people to be able to help. I have now made a dummy spreadsheet with some data added in to explain my problem a bit better.
In the first sheet, the data that is filled out is received from a report that is auto generated. I want to fill out the remaining 3 cells using a Macro and information on the other sheets. The self-approval column should say yes if the employee's band allows them to approve the invoice amount (found in sheet 2). It should say no if they are not allowed to approve themselves, in which case the next cell should populate with the details of their manager (found in sheet 3). If that manager cannot approve due to their band being lower, then it follows onto their manager and so on until the correct approval party is there. This file has 350,000 rows of data.
Sheet 2 shows the proposed amounts each band can approve. These limits will be changed and altered to see which method provides the best coverage.
Sheet 3 shows employee details extracted from a database. Has over 25 fields of information but cut down to show the ones I will be using. This file has 402,000 rows of data.
I have currently toyed with a Macro, where the self-approval populates based on variables stored from Sheet 2 into the Macro and then inputs yes/no into the self-approval cell. That works fine. The only roadblock I am facing is when I use too many if's to check for a managers band code, which results in the macro looping again and again for all the rows of data. What is the most efficient way to do this, please?
Bookmarks