Good evening,
I have moderate VB experience but am completely new to Excel programming. I am developing a program which I expect to be fairly simple, however, I've not a clue where to start organizing my raw data. I figure my macro to be a fairly simple one, but am stuck.
My raw data will be in the following form (the "\" being my delimiter diving cells)
A B C D E
123456 \ Doe \ John \ XA \ 0.5
123456 \ Doe \ John \ XA \ 1.0
654321 \ Doe \ Jane \ SC \ 0.5
654321 \ Doe \ Jane \ SC \ 0.0
What I would like to do, is have a form where a button is clicked to perform the following function.
Search the new sheet, Sheet2, to see if an entry exists for my A column (e.g. if 123456 does not exist, create it, if it does exist move on to next function).
Then search column D, and according to value (e.g. MA, XA, etc.) add column E to the appropriate column in the existing or created row in Sheet2.
So, say given my mock raw data, I would like Sheet2 to have created two rows (123456 and 654321) and added all E column entries showing MA to one column, entries showing XA to another column, etc. So the end result is one row per # (e.g. 123456) and that row continually adds like entries Column E number.
The final Sheet2 product hoping to be:
A B (XA) C (SC)
123456 \ 1.5 \ 0
654321 \ 0 \ 0.5
Also if possible adding the Name data (columns B and C off Sheet1) in columns after the "adding data".
I know... Simple task right? It just seems like something I should be able to do in VB but working with Excel is new and given the huge amounts of entries I'm working with I would like to be able to run these totals with a click of a button before moving on.
Any guidance/advice is appreciated. Thank you in advance for taking the time to read/support.
Regards,
SD
I have moderate VB experience but am completely new to Excel programming. I am developing a program which I expect to be fairly simple, however, I've not a clue where to start organizing my raw data. I figure my macro to be a fairly simple one, but am stuck.
My raw data will be in the following form (the "\" being my delimiter diving cells)
A B C D E
123456 \ Doe \ John \ XA \ 0.5
123456 \ Doe \ John \ XA \ 1.0
654321 \ Doe \ Jane \ SC \ 0.5
654321 \ Doe \ Jane \ SC \ 0.0
What I would like to do, is have a form where a button is clicked to perform the following function.
Search the new sheet, Sheet2, to see if an entry exists for my A column (e.g. if 123456 does not exist, create it, if it does exist move on to next function).
Then search column D, and according to value (e.g. MA, XA, etc.) add column E to the appropriate column in the existing or created row in Sheet2.
So, say given my mock raw data, I would like Sheet2 to have created two rows (123456 and 654321) and added all E column entries showing MA to one column, entries showing XA to another column, etc. So the end result is one row per # (e.g. 123456) and that row continually adds like entries Column E number.
The final Sheet2 product hoping to be:
A B (XA) C (SC)
123456 \ 1.5 \ 0
654321 \ 0 \ 0.5
Also if possible adding the Name data (columns B and C off Sheet1) in columns after the "adding data".
I know... Simple task right? It just seems like something I should be able to do in VB but working with Excel is new and given the huge amounts of entries I'm working with I would like to be able to run these totals with a click of a button before moving on.
Any guidance/advice is appreciated. Thank you in advance for taking the time to read/support.
Regards,
SD