Hi,
I have a VBA code i would like to create.
I have two data sets based on Transport sales. One is Adverts with Open/Close times. The second is Sale Times.
Sheet 1:
<TBODY>
</TBODY>
Sheet 2:
<TBODY>
</TBODY><COLGROUP><COL><COL><COL></COLGROUP>
I need a macro to look at each Sale (Sheet 2), and return the value in column B (Open/Close). For the Type of transport. Output required in BOLD.
So for example, Sheet2: 09:45 Trucks, the advert before was 09:30 Trucks C. Therefore the advert was Closed for the sale. Hence the returned value needs to read C.
Conversely Sheet 2: 13:00 Shoes, the advert before was 08:00 Shoes O. Therefore the advert was Open and value returned should be O.
Thank you for your help.
tom0x
I have a VBA code i would like to create.
I have two data sets based on Transport sales. One is Adverts with Open/Close times. The second is Sale Times.
Sheet 1:
Time | Open/Close | Type |
08:00 | O | Cars |
08:00 | O | Trucks |
08:00 | O | Bikes |
08:00 | O | Shoes |
09:30 | C | Trucks |
10:00 | C | Bikes |
10:00 | O | Trucks |
12:00 | C | Cars |
12:30 | C | Trucks |
13:30 | C | Shoes |
<TBODY>
</TBODY>
Sheet 2:
Time</SPAN> | Type</SPAN> | O/C |
08:30</SPAN> | Cars</SPAN> | O |
09:00</SPAN> | Bikes</SPAN> | O |
09:00</SPAN> | Shoes</SPAN> | O |
09:45</SPAN> | Trucks</SPAN> | C |
10:30</SPAN> | Bikes</SPAN> | C |
13:00</SPAN> | Shoes</SPAN> | O |
<TBODY>
</TBODY><COLGROUP><COL><COL><COL></COLGROUP>
I need a macro to look at each Sale (Sheet 2), and return the value in column B (Open/Close). For the Type of transport. Output required in BOLD.
So for example, Sheet2: 09:45 Trucks, the advert before was 09:30 Trucks C. Therefore the advert was Closed for the sale. Hence the returned value needs to read C.
Conversely Sheet 2: 13:00 Shoes, the advert before was 08:00 Shoes O. Therefore the advert was Open and value returned should be O.
Thank you for your help.
tom0x