+ Reply to Thread
Results 1 to 10 of 10

Moving data based on column data

  1. #1
    Registered User
    Join Date
    08-20-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2007
    Posts
    30

    Moving data based on column data

    Hi,

    I am trying to create a spreadsheet to use for reporting in machine problems on our site.

    I have a worksheet where I want to enter data relating to all the calls on our 2 machines and depending on the system id entered, copy the data in the rows relating to that system id, to another part of the same worksheet.

    For example, in the attached spreadsheet there are 2 system id listed along with data relating to callout date, time, etc. To the right of this are 2 further reports which are left blank, want I want to do is, as data is entered into the currently populated form, depending on which system id is used, all the data entered automatically populates either one of the currently empty forms, so that at the end of each month, each of the 2 forms only have data relating to each system, this way I can print out the either form depending on which system we want to check.

    (I hope that all makes sense)

    Cheers

    Tony
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Moving data based on column data

    Here you go Tony!

    You can hide Columns J, M, and W if you want.

    J automatically ranks each system ID separately, M and W count them up and countdown to 1, and everything else matches the rank with appropriate row #s and pulls it.

    Attachment 259394

    I love building these things.

  3. #3
    Registered User
    Join Date
    08-20-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Moving data based on column data

    Hi daffodil11,

    Thank you very much for this, it works exactly as I was hoping. I am trying to get to grips with your formulas so that I can better understand what is going on but the only thing I can make sense of is you use of the OR logical statement in J2. Would you mind explaining how it all works as there is a chance that I will need to add a third machine to the report at some point.

    Many thanks

    Tony

    Quote Originally Posted by daffodil11 View Post
    Here you go Tony!

    You can hide Columns J, M, and W if you want.

    J automatically ranks each system ID separately, M and W count them up and countdown to 1, and everything else matches the rank with appropriate row #s and pulls it.

    Attachment 259394

    I love building these things.

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Moving data based on column data

    I slammed my finger in a car door yesterday so my typing is slow.

    I'm putting together a little tutorial for you and will post it later today.

  5. #5
    Registered User
    Join Date
    08-20-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Moving data based on column data

    Thanks, I am very grateful.

  6. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Moving data based on column data

    Hope this answers some of your questions!


    Attachment 259632

  7. #7
    Registered User
    Join Date
    08-20-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Moving data based on column data

    Thanks, I understand parts of it but the formulas are still complex at this stage. I am still trying to pick up what I can about the more complex capabilities of Excel.

    I have modified some of the formulas and replaced the absolute system id number with cell locations so that if the serial numbers change, then all the formulas change with it. I have also added some button to print and to save to PDF.

    I still can't believe just how powerful excel is.

    Thanks again.

    Tony

  8. #8
    Registered User
    Join Date
    08-20-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Moving data based on column data

    Hi daffodil11,

    I have found 1 small issue that I am hoping you could assist with. If I leave the Callout Date and Callout Time field blank (which may sometimes be the case), the fields in the report get populated with a date of 00-Jan-00. Could you assist with having those cells only remaining blank if no data is entered?

    Thanks

    Tony

    Quote Originally Posted by daffodil11 View Post
    Here you go Tony!

    You can hide Columns J, M, and W if you want.

    J automatically ranks each system ID separately, M and W count them up and countdown to 1, and everything else matches the rank with appropriate row #s and pulls it.

    Attachment 259394

    I love building these things.

  9. #9
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Moving data based on column data

    Sure. In O2 just change the formula to:

    =IF(IFERROR(INDEX($A$2:$J$30,MATCH(1,($M2=$J$2:$J$30)*(200943=$A$2:$A$30),0),COLUMN(B3)),"")=0,"",IFERROR(INDEX($A$2:$J$30,MATCH(1,($M2=$J$2:$J$30)*(200943=$A$2:$A$30),0),COLUMN(B3)),""))

    Then re-enter it as an array using Ctrl+Shift+Enter and copy and paste it to down to O30 and over to P as well.

  10. #10
    Registered User
    Join Date
    08-20-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Moving data based on column data

    Thanks again mate, worked a charm.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Moving data between sheets based on data content
    By usingexcelnow in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-03-2013, 06:44 PM
  2. [SOLVED] moving data from a column in one sheet to a row in another with gaps between data
    By chestersneakers7 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-13-2013, 02:01 PM
  3. Replies: 2
    Last Post: 07-12-2012, 05:31 PM
  4. Moving data from a row to column based on dup
    By scooby103 in forum Excel General
    Replies: 20
    Last Post: 01-08-2011, 09:14 PM
  5. Replies: 1
    Last Post: 04-26-2009, 08:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1