I am not sure this can be accomplished in excel but I thought I would throw it out there. I have a table with filing information for various states and need a formula that will look to the table in another worksheet within the workbook called "Filing Matrix" for a particular state and then based on certain criteria within a cell return a formula for that state. Below is an excerpt from the table.
Filing Matrix worksheet
A B C
state Aggregate Due Diligence
AZ <$50 >=$50
CA <$25 >=$50
IL <=$5 >$10
MI <$25 >=$25
NY <$20 >=$20
TX <$25 >$25
I have been using a formula for all the lookups in the table and it has worked well but I can't figure out how to perform the look up for the above example and then return a formula.
Worksheet 1
A B C D
State Amt Aggregate Due Diligence
AZ $20
AZ $65
CA $60
CA $15
IL $03
IL $15
MI $35
MI $12
NY $10
NY $25
TX $18
TX $30
Required formula for column "C" above in worksheet 1: I need a formula that will look to the state code in column "A" of worksheet 1 and then match the code to the state code in the table "Filing Matrix" worksheet, read across to the column "B" for the criteria (e.g. AZ - <$50) and then compare the amount in the worksheet 1 at column "B" Amt. and then if the Amt in column B is below the criteria (e.g.,for AZ <$50) then return the amount in Column "B" (e.g., AZ $20) worksheet 1. If the amount in column "B" exceeds the criteria (e.g. <$50) then return nothing as in the case of AZ second line $65, which is greater than the $50 requirement.
The required formula for column "D" above in worksheet 2: I need a formula that will follow the same logic as the previous formula but instead of looking to column "B" in the Filing Matrix, will look to column "C" (e.g., AZ >=$50) and return a value of "YES" where the amount in column "B" meets the particular state requirement for due diligence and where it doesn't, simply leave the cell blank. Please note, that I have a formula for the column "D" but I have to sort the worksheet by state code then enter the formula manually and copy down to the next state code, where the criteria may change. I am trying to avoid the manual process through a lookup formula or any other applicable logic. Thanks
Bookmarks