bergy32204
New Member
- Joined
- May 8, 2024
- Messages
- 3
- Office Version
- 365
- Platform
- MacOS
Hello.
I am pretty new to macros and have only done extremely simple stuff up to this point. The macro I am looking to make/obtain would be based on this. Also to note, I am using (version 16.84). I think the correct term is also worksheet, but I call them tabs here.
Tab 1 (main page):
From A1 down to A_ (you can enter a new item and it would automatically search/find or a button would be needed) you would essentially have the item you were looking for and it would search between all the tabs, count up all of the cells that contain that item and are highlighted green or yellow (if the highlighting cannot be done, what is an alternate way to determine to is 'green', 'yellow', or nothing), and count the amount that contain green. So for example:
A5 = iPhone 10
B5 = 10
C5 = 3
The amount of cells that contain 'iPhone 10' between all of the tabs is 15, but only 7 are highlighted yellow and 3 are green. This would in turn add green and yellow highlighted cells with that item and add that in the 'B' column (in this example, 7+3=10). Then in the 'C' column it would only count the cells with that item that are green (in this case C5 = 3).
As mentioned, this is what it should look like in the end:
I A I B I C I
4 iPhone 9 11 8 (20 total cells, 8 are highlighted green, 3 are highlighted yellow)
__________________________
5 iPhone X 5 4
__________________________
6 iPhone 11 25 11
__________________________
Hopefully this all makes sense. If you have any question please ask! Thank you very much!
I am pretty new to macros and have only done extremely simple stuff up to this point. The macro I am looking to make/obtain would be based on this. Also to note, I am using (version 16.84). I think the correct term is also worksheet, but I call them tabs here.
Tab 1 (main page):
From A1 down to A_ (you can enter a new item and it would automatically search/find or a button would be needed) you would essentially have the item you were looking for and it would search between all the tabs, count up all of the cells that contain that item and are highlighted green or yellow (if the highlighting cannot be done, what is an alternate way to determine to is 'green', 'yellow', or nothing), and count the amount that contain green. So for example:
A5 = iPhone 10
B5 = 10
C5 = 3
The amount of cells that contain 'iPhone 10' between all of the tabs is 15, but only 7 are highlighted yellow and 3 are green. This would in turn add green and yellow highlighted cells with that item and add that in the 'B' column (in this example, 7+3=10). Then in the 'C' column it would only count the cells with that item that are green (in this case C5 = 3).
As mentioned, this is what it should look like in the end:
I A I B I C I
4 iPhone 9 11 8 (20 total cells, 8 are highlighted green, 3 are highlighted yellow)
__________________________
5 iPhone X 5 4
__________________________
6 iPhone 11 25 11
__________________________
Hopefully this all makes sense. If you have any question please ask! Thank you very much!