aromaboards
New Member
- Joined
- Jun 14, 2015
- Messages
- 3
Background info: Microsoft Excel 2010 / VBA 2010
I have a problem I am trying to stream line a report I have to file monthly.I get a CSV file from webbased application that i turn into a xlsx My problem is that I have data in Column A in excel. Its a Load number to track whats been processed. For the most part its fine, however in the webbased application, someone messes up on a load they re-open it do the fixes and. When this happens it ads a -AO to the load number and saves the data. when the CSV file gets generated, not only do I have the original data but also the -AO data as well.
What Im looking for, is someway that excel would look at Column A compare the Load numbers, if a Load number contains -AO at the end, then delete all data associated with the load number that does not have the -AO at the End.
<tbody>
</tbody>
In this example, There was some Admin Opens, and for the Basic set they added wrong qty, it was qty2 not qty1, So I need a Formula to just keep the -AO in this case. But only when the preceeding characters are matching.. Example- 2015 4/121/3 and 2015 4/121/3-AO, in instances like this delete rows with just 2015 4/121/3, but dont get rid 2015 4/121/6.
If thats confusing. sorry Im not good at explainging this.
Think like this, if Load# was one Column and -AO was another, I could code in a command compare the Load# column if duplicate then check Column -AO if value in -AO Delete duplicate rows without -AO, for all Other duplicates without -AO then do nothing.
But thats the problem I cant figure out how to do it since -AO is at the end of Load number.
any ideas??
I have a problem I am trying to stream line a report I have to file monthly.I get a CSV file from webbased application that i turn into a xlsx My problem is that I have data in Column A in excel. Its a Load number to track whats been processed. For the most part its fine, however in the webbased application, someone messes up on a load they re-open it do the fixes and. When this happens it ads a -AO to the load number and saves the data. when the CSV file gets generated, not only do I have the original data but also the -AO data as well.
What Im looking for, is someway that excel would look at Column A compare the Load numbers, if a Load number contains -AO at the end, then delete all data associated with the load number that does not have the -AO at the End.
load# | Item | Descr. | qty | ||
<tbody> </tbody> |
<tbody> </tbody> | NA | 15 | ||
<tbody> </tbody> | Basic Set | NA | 2 | ||
<tbody> </tbody> | Large Set | NA | 50 | ||
2015 4/121/3 | NI-MISC PP | NA | 15 | ||
2015 4/121/3 | Basic Set | NA | 1 | ||
2015 4/121/3 | Large Set | NA | 50 | ||
<tbody> </tbody> | Item3 | NA | 200 | ||
2015 10/138/2-AO | Item4 | NA | 450 | ||
2015 10/138/3 | Item3 | NA | 450 |
<tbody>
</tbody>
In this example, There was some Admin Opens, and for the Basic set they added wrong qty, it was qty2 not qty1, So I need a Formula to just keep the -AO in this case. But only when the preceeding characters are matching.. Example- 2015 4/121/3 and 2015 4/121/3-AO, in instances like this delete rows with just 2015 4/121/3, but dont get rid 2015 4/121/6.
If thats confusing. sorry Im not good at explainging this.
Think like this, if Load# was one Column and -AO was another, I could code in a command compare the Load# column if duplicate then check Column -AO if value in -AO Delete duplicate rows without -AO, for all Other duplicates without -AO then do nothing.
But thats the problem I cant figure out how to do it since -AO is at the end of Load number.
any ideas??