Brian.Crawford
Board Regular
- Joined
- Oct 3, 2007
- Messages
- 136
I have a need to match cells (rows) in on table to another (for SUMPRODUCT). The format of the numbers to compare can be like 1234, 1234., 1234.12, 1234.2000, 1234.PHONE. I am trying to coherce everything into the same format so the the comparisons will work. I have tried many different approaches but noting seems to work. Excel makes anything that doesn't have text in it to be a number (even when it says it's formatted as text). I tried CSTR(), appending 0000s and then truncating to 4 digits for those that are less than 4 decimal positing. I've tried formatting the cells as number, text, custom format ####.0000, etc. In addition the 1234 part and the 2nd part are actually two different parts (adjacent cells) being an Acct & Sub-Acct in some sheets and one single code in another (and sometimes 1234.12 shows up as 1234.1200 (which is what it really is)).
These are existing sheets with 1000's of rows so I need a way to do this either in Excel directly or VBA
This has been most frustrating, so if anyone can suggest something I would be most appreciative.
Thanks
Brian
These are existing sheets with 1000's of rows so I need a way to do this either in Excel directly or VBA
This has been most frustrating, so if anyone can suggest something I would be most appreciative.
Thanks
Brian