Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-27-2011, 05:41 AM
jcurtiss7492 jcurtiss7492 is offline
Junior Member
 
Join Date: Oct 2011
Posts: 6
Post Working with Excel and even and odd numbered rows

I have been given the worst excel spreadsheet I have ever seen and need to clean it up.

Basically, I need to take the data in every even numbered row in Column A and move it to the previous row in column B and then delete the odd row. As the original file is 1200+ lines, I thought AA would be a great solution.

I have attached an example file. At the top is the format of the file currently. At the bottom is how I need it to be.

Thanks in advance...
Attached Files
File Type: zip sample.zip (7.8 KB, 2 views)
Reply With Quote
  #2 (permalink)  
Old 10-27-2011, 08:01 PM
trentonponder trentonponder is offline
Senior Member
 
Join Date: Jan 2009
Posts: 102
Default

Quote:
Originally Posted by jcurtiss7492 View Post
I have been given the worst excel spreadsheet I have ever seen and need to clean it up.

Basically, I need to take the data in every even numbered row in Column A and move it to the previous row in column B and then delete the odd row. As the original file is 1200+ lines, I thought AA would be a great solution.

I have attached an example file. At the top is the format of the file currently. At the bottom is how I need it to be.

Thanks in advance...
I don't think you need AA for this, you can probably solve it directly with Excel

1 - In Cell B3 enter =A4
2 - Drag the formula all the way down the page
3 - Sort the results by column A
4 - Delete everything below the area in row A where it stops displaying the model numbers.

If you want to send me the complete sheet, I'd be happy to do it for you.
Reply With Quote
  #3 (permalink)  
Old 10-28-2011, 05:11 AM
jcurtiss7492 jcurtiss7492 is offline
Junior Member
 
Join Date: Oct 2011
Posts: 6
Default

Thanks for the suggestion, we will have to clean it by hand as some entries are 2 lines and others are 1, even a couple with 3 lines, ugh
Reply With Quote
  #4 (permalink)  
Old 10-28-2011, 06:13 PM
philkryder philkryder is online now
Senior Member
 
Join Date: Sep 2007
Posts: 458
Default

I looked at your sample and took advantage of the fact that the "secondary" and "tertiary" rows had blanks on the right. In the rows to be kept, the columns on the right were NON-BLANK.

I used that to set a value of 0 if the row was to be kept and 1 if the row was to be combined.

I built formulas to bring the N+1 and N+2 values into two new added columns.

I then copied and PASTED SPECIAL to only paste VALUES not the formulas.

I then moved to a new sheet and sorted by the 0 or 1 so that the rows to be kept were at the top.

quick and relatively painless.
see attached
Phil
Attached Files
File Type: zip sample.zip (10.8 KB, 1 views)

Last edited by philkryder; 10-28-2011 at 11:46 PM.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 04:58 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved