FIND SPECIFIC TEXT AND REPLACE IT

T

Tree

I need to find the word "Void" in one column of data and if it is there (and
it would be in ALL CAPS), then the return needs to be V; if it's not there,
the return needs to be I.
Plus, would it be possible for the V or the I to replace the original data?
I've tried the if function, but I'm not putting in the right criteria
obviously...

The data is imported from QuickBooks into Excel and contains the check MEMO
field. I am trying to find Voided Checks for a daily batch report to send to
our bank. This is the only way I've found to capture that data at this point,
but I need the column to have only either V or I...

Any help would be greatly appreciated!
Thanks so much,
 
P

Pete_UK

Highlight the column of data and do CTRL-H (or Edit | Replace), and
then:

Find what: Void
Replace with: V

click Replace All.

Then you could do F5 | Special | Blanks and type I in the first cell
and CTRL-Enter.

Or you could use an Autofilter on that column, using Custom | Does not
Contain | Void, then manually change the first visible cell to I and
then copy this down over the rest of the visible cells. Then apply the
filter again: Custom | Contains | Void, then manually change the first
visible cell to V and copy this down over the other visible cells.
Then select All on the filter pull-down.

Hope this helps.

Pete
 
T

Tree

I didn't think that would work as I want it to compare the text and then
return a value based on what it finds... not just replace the text...
 
T

Tree

Thanks, Pete, for taking the time to help out! In the interim though, I think
I found a workable formula. I didn't see your reply until after I had done
the research. It doesn't do anything for the original cell contents like
yours does, but I can just do a macro to delete the original column once I've
got my V's and I's..
The formula I used is as follows:
=IF(ISNUMBER(SEARCH("void",C2)),"V", "I")...

Again, thank you both for taking the time to help! This forum is always very
good!!..
 
P

Pete_UK

You're welcome - thanks for feeding back.

Pete

Thanks, Pete, for taking the time to help out! In the interim though, I think
I found a workable formula. I didn't see your reply until after I had done
the research. It doesn't do anything for the original cell contents like
yours does, but I can just do a macro to delete the original column once I've
got my V's and I's..
The formula I used is as follows:
=IF(ISNUMBER(SEARCH("void",C2)),"V", "I")...

Again, thank you both for taking the time to help! This forum is always very
good!!..










- Show quoted text -
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top