MEExcelhelp
New Member
- Joined
- Jul 14, 2022
- Messages
- 2
- Office Version
- 2010
- Platform
- Windows
Hi!
I have a sheet with shipping addresses but the data isn't all perfectly lined up. My headers are as follows, starting with Col A:
Some of the addresses are mixed up and come in under NAME2 or NAME3 so I was able to find a couple of formulas that I've placed in ADDR3 and ADDR4 so that all of the addresses appear in those columns (ADDR3 being street address and ADDR4 being city/state/zip).
I need to erase the street address and city/state/zip from the previous columns (B,C,D or E) though so that I only have that information once in ADDR3 and ADDR4. I can't find any VBAs online to help. I was trying to do =IF(OR(F2=B2, F2=C2, F2=D2) then erase cell contents of whichever one it matches and then do the same for G2 but with C2, D2, E2, but it didn't work.
I also don't really know anything about VBA so any help is appreciated.
I have a sheet with shipping addresses but the data isn't all perfectly lined up. My headers are as follows, starting with Col A:
NAME1 | NAME2 | NAME3 | ADDR1 | ADDR2 | ADDR3 | ADDR4 |
Some of the addresses are mixed up and come in under NAME2 or NAME3 so I was able to find a couple of formulas that I've placed in ADDR3 and ADDR4 so that all of the addresses appear in those columns (ADDR3 being street address and ADDR4 being city/state/zip).
I need to erase the street address and city/state/zip from the previous columns (B,C,D or E) though so that I only have that information once in ADDR3 and ADDR4. I can't find any VBAs online to help. I was trying to do =IF(OR(F2=B2, F2=C2, F2=D2) then erase cell contents of whichever one it matches and then do the same for G2 but with C2, D2, E2, but it didn't work.
I also don't really know anything about VBA so any help is appreciated.