Sheet 1, PTAE FY 13 Budget, Cell N3 is where I want the result of the formula that you help me with creating. (Thanks ahead of time).
Sheet 4, BAH Table TN, is where the data resides. Columns A, B, C are named range "Zipcode"; Columns H -X are named range "TNBAH"
I want to automate this cumbersome spreadsheet and thus far my formulas have worked very well; however, this final formula is given me a serious run for my money. The existing formula in cell N3 must be added to this new formula as that answer is to be added to the information that I believe an Index-Match formula will pull into the equation for the final answer.
With that said, I want Cell N3 to take the soldier's Zipcode (Sheet 1, Cell E3) and reference range [ZIPCODE] and determine the AREA; I want it to reference range [SM] to determine if the soldier has Dependents (sheet 2, Pers Oct 2012, Column K); and finally reference range [SM] and determine the soldiers Rank (Sheet 2, Pers Oct 2012, Column E).
Some Caveats.
1. Sheet 2, Pers Oct 2012, Columns E and F mean the same, but Column E is needed for the Paydata information and then on the form (Sheet 1) the persons rank (Column F) is concatenated with the soldiers name.
2. For Range [ZIPCODE], if the formula does not find the keyed zipcode (such as that in the example) then I want the formula to use the Table on Sheet 4, BAH Table TN, Columns W-X (ZZ590); otherwise, match the Area listed in Column B with the tables in columns I-V.
3. Sheet 2, Range [SM], the number of dependents will range from 0-?? for each soldier.
From the sample data, the formula would pull:
Zipcode: 38451
Dependents: (If >=1, "yes", "no") YES
Rank: E-7
With those data points, use the range [Zipcode] to determine if the zipcode keyed in Cell E3,Sheet 1, is not present in [Zipcode] and know to use table ZZ590 on columns W-X. It will see the soldier has dependents and use column W (ZZ590 table); It will then find the corresponding dollar amount for that soldier Rank (E-7 in this example) with the answer being: $1,245.00
With that answer in hand, that $1,245.00 will be added to the formula currently in cell N3 showing a grand total of $1,593.44
(Sigh!) What are your questions and I look forward to seeing your replies. I have tried many times using Vlookup and Index-Match combinations to no avail.
Bookmarks