G
gatarossi
Dear all,
I have a big problem, but I don't known how excel can solve it.
I have a sheet with like it:
process process_line status values_USD
0255155 10 44 10
0255155 20 44 20
0255156 10 33 11
0255156 20 44 21
0256157 10 33 12
0256157 20 33 22
0256157 30 33 23
0256158 10 22 13
0256158 20 33 14
0256158 30 44 15
And I need a code to do the following:
1) Create unique process numbers;
2) Read line by line of each process:
If the status of all lines are 44 then the excel put "ok - invoiced!"
Process Status values_USD
0255155 ok - invoiced 30
If the status of one line is 33 then the excel put "verify the line
10 - status 33"
Process Status values_USD
0255156 verify the line 10 - status 33 32
If the status of all lines are 33 the excel put " ready to invoice"
Process Status values_USD
0255157 ready to invoice 57
If in any contains status 22 the excel put "missing components"
Process Status values_USD
0255158 missing components 42
It's clear to me the instruction "if", but I don't known how a code of
VBA can read line by line if each process in the sheet to check the
status and after return the "new status" of the process.
Thanks a lot!!!
André.
I have a big problem, but I don't known how excel can solve it.
I have a sheet with like it:
process process_line status values_USD
0255155 10 44 10
0255155 20 44 20
0255156 10 33 11
0255156 20 44 21
0256157 10 33 12
0256157 20 33 22
0256157 30 33 23
0256158 10 22 13
0256158 20 33 14
0256158 30 44 15
And I need a code to do the following:
1) Create unique process numbers;
2) Read line by line of each process:
If the status of all lines are 44 then the excel put "ok - invoiced!"
Process Status values_USD
0255155 ok - invoiced 30
If the status of one line is 33 then the excel put "verify the line
10 - status 33"
Process Status values_USD
0255156 verify the line 10 - status 33 32
If the status of all lines are 33 the excel put " ready to invoice"
Process Status values_USD
0255157 ready to invoice 57
If in any contains status 22 the excel put "missing components"
Process Status values_USD
0255158 missing components 42
It's clear to me the instruction "if", but I don't known how a code of
VBA can read line by line if each process in the sheet to check the
status and after return the "new status" of the process.
Thanks a lot!!!
André.