Hello
I want if the values in column H is highlighted by green font color , then should show in correspond cells in column A is 0 and if the value in column H is black , then should populate in correspond cells in column A is the same value and if the column C contains duplicated names and the the adjacent cells in columns D,E are empty , then should fill empty adjacent cells as is existed from first time.
before
after
I want if the values in column H is highlighted by green font color , then should show in correspond cells in column A is 0 and if the value in column H is black , then should populate in correspond cells in column A is the same value and if the column C contains duplicated names and the the adjacent cells in columns D,E are empty , then should fill empty adjacent cells as is existed from first time.
before
TEST (3).xlsx | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
2 | AMOUNT | COUNT | NAME | INSUR NO | NAT | DATE | COST | SELLING | INTEREST | ||
3 | 1 | ALAA1 | N01548805 | SY | 7/1/2020 | 350 | 400 | 50 | |||
4 | 1 | ALAA2 | Q545406 | JO | 7/1/2020 | 320 | 400 | 80 | |||
5 | 1 | ALAA3 | A830660 | EG | 7/10/2020 | 320 | 400 | 80 | |||
6 | 2 | ALAA1 | 7/15/2020 | 350 | 400 | 50 | |||||
7 | 3 | ALAA1 | 7/17/2020 | 350 | 400 | 50 | |||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B3:B7 | B3 | =COUNTIF($C$3:C3,C3) |
G7 | G7 | =IF($F7>0,"350",IF($F7>0,"",IF($F7<0," ",""))) |
I3:I7 | I3 | =H3-G3 |
after
TEST (3).xlsx | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
2 | AMOUNT | COUNT | NAME | INSUR NO | NAT | DATE | COST | SELLING | INTEREST | ||
3 | 0 | 1 | ALAA1 | N01548805 | SY | 7/1/2020 | 350 | 400 | 50 | ||
4 | 0 | 1 | ALAA2 | Q545406 | JO | 7/1/2020 | 320 | 400 | 80 | ||
5 | 0 | 1 | ALAA3 | A830660 | EG | 7/10/2020 | 320 | 400 | 80 | ||
6 | 400 | 2 | ALAA1 | N01548805 | SY | 7/15/2020 | 350 | 400 | 50 | ||
7 | 400 | 3 | ALAA1 | N01548805 | SY | 7/17/2020 | 350 | 400 | 50 | ||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B3:B7 | B3 | =COUNTIF($C$3:C3,C3) |
G7 | G7 | =IF($F7>0,"350",IF($F7>0,"",IF($F7<0," ",""))) |
I3:I7 | I3 | =H3-G3 |