+ Reply to Thread
Results 1 to 12 of 12

choosing specific data only rows from a list of which includes headers/titles/subtitles

  1. #1
    Registered User
    Join Date
    06-06-2014
    Posts
    8

    choosing specific data only rows from a list of which includes headers/titles/subtitles

    Hello, I hope you are well.

    Firstly please forgive my ignorance if this is an easy fix, but i have tried my best and cant find out how to solve this

    I have an export spreadsheet which details information from column a to column p which i need ...(supplier code...net value..vat...comments..etc)

    However there are also subheaders, sub totals titles which take up entire rows and contains data i do not need.

    Is there a way of telling excel to choose certain rows (eg ...A19 to P19, A20, to P20, A45 to P45 )

    depending on if the first cell of the rows i need eg Cell A19,A20, A45 etc contains a supplier code such as from the following list :

    AC01NET
    AD05
    210
    003
    BL01
    KF01
    KF01
    CA06

    I would need to paste the selected rows into another sheet

    Sorry if this is not clear

    Thanks
    Last edited by unexecel; 06-06-2014 at 11:26 AM. Reason: clarity

  2. #2
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: choosing specific data only rows from a list of which includes headers/titles/subtitle

    I'd need to see a sample workbook to help.
    1. Include a sample workbook with an example of the result you want
    2. Use [CODE] and [FORMULA] wrappers for your VBA code or excel formulas
    3. If your question has been answered, mark the thread as SOLVED and click on the "Add Rep" star to thank whoever helped you.

  3. #3
    Registered User
    Join Date
    06-06-2014
    Posts
    8

    Re: choosing specific data only rows from a list of which includes headers/titles/subtitle

    Hey apologies

    Please find attached file

    first tab = list of accounts

    second tab = data
    Attached Files Attached Files

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: choosing specific data only rows from a list of which includes headers/titles/subtitle

    Hi unexecel,
    try it
    Please Login or Register  to view this content.
    Please note there are duplicate values ​​(KF01) in the worksheet 'Sheet'

  5. #5
    Registered User
    Join Date
    06-06-2014
    Posts
    8

    Re: choosing specific data only rows from a list of which includes headers/titles/subtitle

    Hi

    Firstly thank you for your reply i really appreciate the help

    I have cut and paste the code in but when i run the macros it only displays entries for the accounts KF01 & WK01NET

    See attachment (sheet 3 )

    ITs bloody amazing tho what you have managed to do so far!!!!
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-06-2014
    Posts
    8

    Re: choosing specific data only rows from a list of which includes headers/titles/subtitle

    sorry forgot to add KF01 duplicate was a mistake should not be duplicated

    Thanks

  7. #7
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: choosing specific data only rows from a list of which includes headers/titles/subtitle

    "...it only displays entries for the accounts KF01 & WK01NET"
    Because only KF01 and WK01NET exist simultaneously on the sheet 'Sheet' and on the sheet 'Sheet1'
    Perhaps I misunderstood your task

  8. #8
    Registered User
    Join Date
    06-06-2014
    Posts
    8

    Re: choosing specific data only rows from a list of which includes headers/titles/subtitle

    Hi

    I am so sorry i have added the wrong list in sheet "sheet"

    I have since amended the list in sheet "sheet" but when i run the macros an error occurs?

    Apologies for my stupidity i am trying to understand this but am finding it very tough

    Thanks again
    Attached Files Attached Files

  9. #9
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: choosing specific data only rows from a list of which includes headers/titles/subtitle

    Hi unexecel,

    Let's remove the extra spaces on the sheet1
    Please try again
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    06-06-2014
    Posts
    8

    Re: choosing specific data only rows from a list of which includes headers/titles/subtitle

    IT WORKED



    THANK YOU SOOOO MUCH

    May i ask one more question please, if i wanted to add another supplier code to sheet "sheet" how would i amend range a1?

    Thanks again you are the best!

  11. #11
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: choosing specific data only rows from a list of which includes headers/titles/subtitle

    Just add the supplier code in the last blank line in column A of the sheet "Sheet"
    x =. Range ("A1",. Cells (Rows.Count, 1). End (xlUp)). Value will take all suppliers codes

    Edited:
    ...in the first blank line...
    oops
    Last edited by nilem; 06-09-2014 at 06:38 AM.

  12. #12
    Registered User
    Join Date
    06-06-2014
    Posts
    8

    Re: choosing specific data only rows from a list of which includes headers/titles/subtitle

    Thank you sir

+ 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. Replies: 0
    Last Post: 10-02-2012, 02:01 AM
  2. [SOLVED] VBA to organise data into specific rows, using row headers
    By stephen11 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-05-2012, 06:32 AM
  3. [SOLVED] Counting Cells that includes exact match and also if a cell includes specific text
    By smclachlan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-19-2012, 07:42 PM
  4. Stripping or choosing rows from one list to populate another
    By Gunther Maplethorpe in forum Excel General
    Replies: 2
    Last Post: 02-24-2011, 05:41 PM
  5. Sort specific rows and leave headers
    By sp1ken in forum Excel General
    Replies: 2
    Last Post: 05-12-2009, 10:29 AM

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