Hi friends,
I'm having a tough time with this problem. In the attached doc, you will notice 3 worksheets. The Paste! contains the data; Step6! is the location where I need some formula help; Categories! is the location from which we will be pulling values. All of this data is dynamic and changes daily (though the data structure does not change).
It may be best to run through an example. In cell Step6!B3, I need a formula that will do the following:
Search Paste!B3 for either "/Category" or "/Table" (if not found, then "0")
If either is found, then pull the text phrase directly before the "/"
Then lookup the column name on row Categories!2:2
Then vertically lookup the text phrase directly before the "/"
Offset to the column to the right directly under "Trans" and pull in the number
In my example we would get the following in Step6!B3 at each of these steps:
TRUE ---- Paste!B3 does contain "Category"
Lookup "GeoSegmentation Demographic Area" in Categories!2:2 ---- Categories!BC2
Lookup "phoenix (753)" in column Categories!BC ----Categories!BC17
Offset and return the number under "Trans" column ----Categories!BD17 = "16"
I hope that makes sense. I will need to drag this formula over to the right and down. Thank you soooo much! I've been working on this for over 2 hours and no luck.
Thanks,
John
Bookmarks