Kenja824
Automotive
- Nov 5, 2014
- 950
I have a column with metal thicknesses in it. Unfortunately GM now has some product that is not constant and depending where it is welded the guage can be different, so they are adding some info to another column and in the usual column it will show 0.
If it matters, this is in a table
Columns headers where guage should be = "Guage 1", "Guage 2" & "Guage 3"
In a varying part, these will show 0 and there will be info under header "GM_WELD_COMMENT"
Information in GM_WELD_COMMENT will be something like this..... <VT>VT2-2.175</VT>
I have a .bas file with code that does a lot of arranging columns, formatting columns and adding formulas to set up an excel file I receive from another department. I get the excel file from them and run this .bas file and it sets everything up to make my job easier. I am attaching the .bas file in case it helps. Some of you helped me put chunks of this together in the past.
What I want to do is have this file look at the cells under the Guage 1, Guage 2 and Guage 3 columns and if it has a number larger than 0, it ignores it. If the cell has "0" it will replace it with the extracted thickness from the text in the same row under column GM_WELD_COMMENT.
1) The guage is the numbers between the "-" and the "</"
2) It would help if it also rounds that number to 2 places, but that's not important.
I hope you dont need the actual excel file for this as I would have to take an old one and change a bunch of info in it to protect GM's privacy issues. But if necessary, I can do that.
I was gonna show what I was trying to get to work but decided not to make you laugh too hard.
If you can help, it would be appreciated.
If it matters, this is in a table
Columns headers where guage should be = "Guage 1", "Guage 2" & "Guage 3"
In a varying part, these will show 0 and there will be info under header "GM_WELD_COMMENT"
Information in GM_WELD_COMMENT will be something like this..... <VT>VT2-2.175</VT>
I have a .bas file with code that does a lot of arranging columns, formatting columns and adding formulas to set up an excel file I receive from another department. I get the excel file from them and run this .bas file and it sets everything up to make my job easier. I am attaching the .bas file in case it helps. Some of you helped me put chunks of this together in the past.
What I want to do is have this file look at the cells under the Guage 1, Guage 2 and Guage 3 columns and if it has a number larger than 0, it ignores it. If the cell has "0" it will replace it with the extracted thickness from the text in the same row under column GM_WELD_COMMENT.
1) The guage is the numbers between the "-" and the "</"
2) It would help if it also rounds that number to 2 places, but that's not important.
I hope you dont need the actual excel file for this as I would have to take an old one and change a bunch of info in it to protect GM's privacy issues. But if necessary, I can do that.
I was gonna show what I was trying to get to work but decided not to make you laugh too hard.
If you can help, it would be appreciated.