I have a sheet to search with column 1 having dates (1/1/12 - 12/31/12). each row has 5 columns with data
1/1/2012 AUSTIN MU2 SOCCER FIRM
1/1/2012 HOUSTON MU1 BASEBALL HOLD
1/7/2012 AUSTIN MU2 SOCCER FIRM
1/9/2012 HOUSTON MU2 SOCCER FIRM
1/9/2012 HOUSTON MU1 BASEBALL FIRM
ETC
NO ROWS ARE BLANK, DAYES IN ROW 1 ARE IN ASCENDING ORDER
A ROW CAN HAVE 1 DATE OR THE SAME DATE TWICE
I'M searching for a date, and I want to display the information for either MU1 or MU2 in a cell
---------
Here's the best way to demonstrate:
look for date 1/7/2012 in column 1
found date in column 1, row 1 - look in column 4 for "MU1"
if row 12 column 4 contains "MU1", then report contents of row 12 Column 5
if row 12 col 4 dows NOT contain "MU1", look in the next row col 1 for 1/7/2012
I could write it in GWbasic, but not in VBasic.
I can use VLookup, but if the target search column (Col1) has more that 1 instance of the target value (1/7/12),
the search fails. I can't change the structure of the searched array.
If you can understand this and have any ideas, I would be in your debt.
Thanks,
-- Doc
Bookmarks