Need help fast w/ vba!

nrguerrieri

New Member
Joined
May 10, 2018
Messages
39
Office Version
  1. 365
Need a macro that will find every cell that contains text within columns A to E all the way down to the bottom. Then paste them in that exact order, but all in column A.
 
*also the after photo should have then deleted the numbers from the previous position. hence "cutting" instead of copy and paste.
 
Last edited:
Upvote 0

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
whoa that did not work. not sure what happened there. I need it to look from this to that.
When you have multiple people replying to you, we cannot tell who your message is meant for unless you mention the person's name.



before
<img id="<05ECE52D-D3B6-48FF-89F8-AAF12198EC21@resolutecomm>" src="blob:https://www.mrexcel.com/83ffa292-6c2b-4333-950b-3f72f8a39a04" alt="IMG_8819.JPG" type="application/x-apple-msg-attachment" class="Apple-web-attachment Singleton" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px;">

after
<img id="<F3FE943D-1A56-40F9-8150-3B775BA65377@resolutecomm>" src="blob:https://www.mrexcel.com/8eb80e06-4ea6-447d-b5ea-06d3019fa8f4" alt="IMG_8820.JPG" type="application/x-apple-msg-attachment" class="Apple-web-attachment Singleton" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px;">
You cannot post pictures stored on your hard drive; hence, we cannot see your pictures.
 
Upvote 0
Two questions...

Do you have some cells with numbers in them? If so, they are to be ignored, correct?

What do you mean by "exact order"? You have 5 columns and numerous rows... data can be ordered by traveling across a single row before moving down to the next row or down a single column before moving on to the next column... which ordering did you want?

None of the columns a thru e have numbers. It is just text. Order i meant for the text in d5. I need it to be in a5, what was in e7 needs to be in a7 and so on
 
Upvote 0
And what did not work.
Tell me what it did wrong.

Never jus say that did not work

The script looks in column A to E for values.

And enters all those values in Column A

Do not be concerned about posting images.
Tell us again what you want.
Do not repeat what you have already said.
 
Upvote 0
And what did not work.
Tell me what it did wrong.

Never jus say that did not work

The script looks in column A to E for values.

And enters all those values in Column A

Do not be concerned about posting images.
Tell us again what you want.
Do not repeat what you have already said.

did a test run on 5 inputs. looks like the numbers are confused where to go in order. for instance, in your code value in b8 went to a2, value in d5 went to a6. I need value in b8 to go to a8, d5 value to a5 value and so on.

thanks
 
Upvote 0
You said:
in b8 to go to a8, d5 value to a5 value and so on.
If b8 goes to a8 where does c8 go?
 
Upvote 0
there is nothing in c8. in columns A to D. there is not always a value in those columns, but when there is text in those columns. That one text in d8, there will not be another text cell within A8,b8 or c8. if there is text in a1, there will not be anything in b1,c1, or d1. Like i said before. there are instances where a row of wont have anything in columns a,b,c, or D
 
Last edited:
Upvote 0
So your saying there will never be more then one value in columns B to E of each row.
So what ever is in columns B to E will be put in column A is that correct?

Are there values already in column A?
 
Upvote 0
So your saying there will never be more then one value in columns B to E of each row.
So what ever is in columns B to E will be put in column A is that correct?

Are there values already in column A?

You are correct. There are no values in column A. I need everything from B to E to move to column A.

The end purpose of this is to get everything in one column. So then i can use my other vba code to copy from above and paste below to all the blanks below until there is a value. then loop that.
 
Upvote 0

Forum statistics

Threads
1,223,954
Messages
6,175,603
Members
452,658
Latest member
GStorm

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top