I am super inexperienced with VBA. What I've accomplished with VBA I've picked up by Googling. So, there's no depth, at all, to what I know.
OK, here's what I have:
In a workbook I have two sheets. Lets call them Sheet1 and Sheet2.
In Sheet1 I have this 2-D table, where the ###s are some value corresponding to the matching row and column labels:
Age     Males    Females
18-29   #####    ###### 
30-44   #####    ###### 
45+      #####   ###### 
The cells for all of the above are D2:F5
Now, in Sheet2 I have 3 columns: ID Age Sex which start at A7. So, the headers are in A7, B7, C7
You can probably see where I'm going with this.
I have thousands of rows.
I need to place the appropriate ### in column D7, with the header Amount based on matching values in Sex (B) and Age (C).
So, if the cross-tab in Sheet1 had these values:
Age     Males       Females
18-29   123         456 
30-44   789         101112 
45+      131415   161718 
Then in Sheet2 I'd like to see:
ID   Sex          Age       Amount
1    Female    30-44     101112
2    Male        18-29     123
etc on down the column.
And I don't have the slightest clue how to go about this. My biggest VBA accomplishment so far is importing a CSV file into an active worksheet, so...
 
    