Forum Discussion
EXCEL URGENT HELP!
- Nov 14, 2019
Skpenu505Here's a way to have the data validation list change depending on the dept number entered, as you requested. It uses named ranges for each departments codes, and then a VLOOKUP function nested in a CHOOSE function to select the appropriate range name.
Let me know if you have questions.
@Skpenu505 One of the neat things about Excel is that there often are multiple ways "to skin the cat"
I woke up thinking that there HAS to be a simpler way to give yourself different drop down selection items for each Dept Code. And then the use of INDIRECT occurred to me. So here's a revised sample of how you can accomplish the narrowing of the Fund Codes to only those relevant to the Dept that's been entered.
The formula (in the Validation dialog box) is
| =INDIRECT(VLOOKUP($C$7,CodeLkUp,2)) |
where CodeLkUp is the name given to a table of two columns that simply lists the dept number and then the name of the range associated with the relevant Fund Codes.
Thank you mathetes Ricardo Viana !! You've both being of great help. I appreciate you both. I believe the second part of my question wasn't clear. On "page 2&3"under Column G is the amount for each expense coded with the fund code on (column B), how can I transfer the total on column G for each fund code(column B) to appear on Page 1 preferably on cell O43 with each fund code number to appear alongside the total.
Hope this is clearer. Thanks!