how can i loop a macro

G

Guest

this is my example dry = new rate for dryers dry#### = old rate for
dryers
____________________
dry1052 | 50 |
_______|____________|
dry | 50 |
_______|____________|
dry1152 | 40 |
_______|____________|
dry | 40 |
_______|____________|

this continues.....for about 1500 cells
i want a macro that will combine information, (=a2&""&b2) and makes part of
it, but i also need to get last 2 letters in colum A, onto the combined cell.

i can do everything but get last 2 letters and make a macro, that doesnt
stop until the data stops, not sure if this is possible

thanks in advance
 
D

Dave O

You can do this without a macro, if you'd prefer it. You can parse the
last two letters of an entry with the RIGHT() function. If the word
EXCEL is entered in cell A1, then
=RIGHT(A1,2) returns EL.

Add this to the formula you posted:
=a2&""&b2&RIGHT(A1,2)
 

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