chadski778
Active Member
- Joined
- Mar 14, 2010
- Messages
- 297
I have a selection of cells in my spreadsheet that has a standard number of columns (B-P) but varies in row length in each file. I would like a macro that scans through the contents of each column and returns a summary value in the row below the selection of cells. The priority should be No>Pending>Unknown>Yes
This means that if there is a "No" in the column it would take priority and would be returned in the new row. If there were no cells containg "No" but there was a "Pending" this would be returned and so on. I have added a screenshot for better understanding. The summary of each column should go in the Summary row just below the rows selected. It would be preferable if the output cells could be coloured the same or similar to the ones in the example (No=Red, Unknown and Pending=Orange, Yes=Green)
Thanks
This means that if there is a "No" in the column it would take priority and would be returned in the new row. If there were no cells containg "No" but there was a "Pending" this would be returned and so on. I have added a screenshot for better understanding. The summary of each column should go in the Summary row just below the rows selected. It would be preferable if the output cells could be coloured the same or similar to the ones in the example (No=Red, Unknown and Pending=Orange, Yes=Green)
Excel Workbook | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | |||
4 | EU | ELINCS (EU) | US | Jap | Aus | Can | Kor | Phil | China | NZ | Taiwan | REACh ATIEL Group | REACh overall status | Canadian WHMIS No. & Date | Canadian HMIRC No. & Date | |||
5 | Yes | Unknown | Yes | No | Yes | Yes | Yes | Yes | Yes | Yes | Unknown | Unknown | Unknown | Unknown | Unknown | |||
6 | Yes | Unknown | Yes | Yes | Yes | Yes | Yes | No | Yes | Yes | Pending | Unknown | Unknown | Unknown | Unknown | |||
7 | Yes | Yes | Yes | Yes | Pending | Yes | Yes | Yes | Yes | Yes | Unknown | Unknown | Unknown | Unknown | Unknown | |||
8 | Yes | Unknown | Yes | Yes | Yes | Yes | Yes | Unknown | Yes | Yes | Unknown | Unknown | Unknown | Unknown | Unknown | |||
9 | Yes | Unknown | Yes | Yes | Unknown | Pending | Yes | Yes | Yes | Yes | Yes | Unknown | Unknown | Unknown | Unknown | |||
10 | Yes | Unknown | Yes | Yes | Yes | Pending | Yes | Yes | Yes | Yes | Yes | Unknown | Unknown | Unknown | Unknown | |||
11 | Yes | Unknown | Yes | Yes | Yes | Yes | Yes | Pending | Yes | Yes | Yes | Unknown | Unknown | Unknown | Unknown | |||
12 | Summary | Yes | Unknown | Yes | No | Pending | Pending | Yes | No | Yes | Yes | Pending | Unknown | Unknown | Unknown | Unknown | ||
Inventories |
Thanks