Is it possible to replace the Underscore in INVOICE B10 and D33 with a Space?
Is it possible to replace the Underscore in INVOICE B10 and D33 with a Space?
Try these...
B10=SUBSTITUTE(VLOOKUP($K$5,Customers,4,FALSE),"_"," ")
D33=LEFT(B10,LEN(B10)-5)
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
Encase the formula in B10 with a SUBSTITUTE function.
I.e.
Formula:=SUBSTITUTE(VLOOKUP(R5C11,Customers,4,FALSE),"_"," ")
However, in doing so, the formula in D33 will have to be adjusted. Using the same logic, change D33 to...
Formula:=LEFT(B10,FIND("@",SUBSTITUTE(B10," ","@",LEN(B10)-LEN(SUBSTITUTE(B10," ",""))))-1)
Many thanks Gentlemen. My first introduction to SUBSTITUTE. I have much to learn, thank you for helping me.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks