Hi all, I've got a head scratcher that I feel shouldn't be very difficult yet here I am, well, scratching my head.
I need a macro to match a value in Sheet3 Column A to Sheet2 Column A, find the corresponding value in Sheet2 Column B, then match THAT value to Sheet1 Column A, then write the appropriate value in Sheet3 Column B to Sheet1 Column B. OK, allow me to illustrate:
Sheet1
State # (value written to this column) AZ CA CO FL GA IL IN MA MI MN NY OH OR PA TN TX WA
Sheet2
City State Philadelphia PA Seattle WA Houston TX Los Angeles CA Dallas TX Portland OR Kansas City MO Chicago IL Denver CO Atlanta GA San Francisco CA Detroit MI Baltimore MD Austin TX San Diego CA
Sheet3
City # Atlanta 24 Baltimore 52 Chicago 84 Dallas 35 Houston 86 Los Angeles 67 New York 76 San Francisco 35
So basically Sheet1 should be the sum totals of each of the states, but first it needs to loop through Sheet2 as the index to match the state with the city. I feel like this is so simple yet nuanced enough to elude me, so if anyone can help, I would sincerely appreciate it. I'm working with an example doc with the exact information provided if that helps. Please let me know if you have any additional clarifying questions and thanks in advance!!
Bookmarks