Is it possible to insert a formula like "=replace(..)" within an IF formula? I sometimes have spreadsheets that will have values in column A, but only in some of the rows. I'd like to be able to say If there's a value in column A, insert a '-' between characters 3 and 4. I like working with formulas where possible and avoiding macros.
Thanks!
Last edited by NBVC; 01-12-2012 at 11:43 AM.
Do you mean?
=IF(A1<>"",REPLACE(A1,4,0,"-"),"")
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Works like a charm. Thanks for that!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks