+ Reply to Thread
Results 1 to 28 of 28

Extract Data from specific cells in Multiple Files #3

  1. #1
    Registered User
    Join Date
    01-01-2024
    Location
    India
    MS-Off Ver
    2019
    Posts
    46

    Extract Data from specific cells in Multiple Files #3

    I require
    1. Data in row 97 of sheet "Data Sheet" from column B to K to be copied to Sheet "EVSALES" in Main file that is called "textiles (1)".
    2. In sheet McapSales, (Row 90 multiplied by Row 93) Divided by Row 17 for columns B to K from sheet "Data Sheet" which is in other files.

    These are the only 2 queries.

    Thank you.
    @jindon
    Attached Files Attached Files
    Last edited by Basty1311; 03-06-2024 at 03:59 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Extract Data from specific cells in Multiple Files #3

    Where is data (row 97) to be copied to ?
    Last edited by JohnTopley; 03-06-2024 at 04:10 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Registered User
    Join Date
    01-01-2024
    Location
    India
    MS-Off Ver
    2019
    Posts
    46

    Re: Extract Data from specific cells in Multiple Files #3

    data has to be copied to File called Textiles (1).
    data is in other files which have the same name as the Name column. Sample file called RSWM is attached. Rows 17,83,93 is to be taken from these files.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Extract Data from specific cells in Multiple Files #3

    If this works as you want, better delete apostrophe to convert formula to value, because so many linked formula to outer files are not recommended.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-01-2024
    Location
    India
    MS-Off Ver
    2019
    Posts
    46

    Re: Extract Data from specific cells in Multiple Files #3

    1. The code for "EVSALES" sheet is not working. Output is 0 and it shows the real output when I open all the other files.
    2. The Name columns are highlighting the cells with green color ?

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Extract Data from specific cells in Multiple Files #3

    You should be able to see the formula in cell.
    If the formula is correct, it is empty or 0 in source workbook.

    Colored green when the row is updated for this time.

  7. #7
    Registered User
    Join Date
    01-01-2024
    Location
    India
    MS-Off Ver
    2019
    Posts
    46

    Re: Extract Data from specific cells in Multiple Files #3

    The formula is correct. The output is correct too. But the output shows up only when I open the respective file. Kid you not. Not sure why its happening only in EVSALES sheet and not the other one.
    Is there a solution or should we try a different formula like in the other sheet ?

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Extract Data from specific cells in Multiple Files #3

    I can't replicate such issue.

    Everything is doing as I wrote.

    One possibility is, as I mentioned #4 and your previous thread, no good to keep many formulae with outer link.

  9. #9
    Registered User
    Join Date
    01-01-2024
    Location
    India
    MS-Off Ver
    2019
    Posts
    46

    Re: Extract Data from specific cells in Multiple Files #3

    I removed the apostrophe and the values in EVSALES are 0.
    The workaround is to manually calculate this.
    The formula would be
    {[(B90 multiplied by B93)+B59-B69] Divided by B17}

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Extract Data from specific cells in Multiple Files #3

    Where did that formula come from?

  11. #11
    Registered User
    Join Date
    01-01-2024
    Location
    India
    MS-Off Ver
    2019
    Posts
    46

    Re: Extract Data from specific cells in Multiple Files #3

    No this is the workaround since the original formula isn't working. This is new.
    I want to try this because this sort of thing has worked for us in the past.
    Last edited by Basty1311; 03-06-2024 at 05:19 AM.

  12. #12
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Extract Data from specific cells in Multiple Files #3

    And is it working now?

  13. #13
    Registered User
    Join Date
    01-01-2024
    Location
    India
    MS-Off Ver
    2019
    Posts
    46

    Re: Extract Data from specific cells in Multiple Files #3

    To my surprise, Yes.
    Any clue why this works and the other doesnt?

  14. #14
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Extract Data from specific cells in Multiple Files #3

    No idea as I have no problem with my code as it is.

  15. #15
    Registered User
    Join Date
    01-01-2024
    Location
    India
    MS-Off Ver
    2019
    Posts
    46

    Re: Extract Data from specific cells in Multiple Files #3

    Could it be that I am facing this issue because of the location of the folder ? My folder is in the Desktop.

  16. #16
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Extract Data from specific cells in Multiple Files #3

    I wrote the code based on all workbooks, including textiles (1), are in the same folder.

    But working in some sheet and no in some is not possible.

  17. #17
    Registered User
    Join Date
    01-01-2024
    Location
    India
    MS-Off Ver
    2019
    Posts
    46

    Re: Extract Data from specific cells in Multiple Files #3

    No No. All files are in 1 folder.
    https://file.io/2LPqkeHcx8Gf this is the whole folder. Can you try and run your code in it ? Please replace the code (to your code) in the mainfile since it has the updated code now.

  18. #18
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Extract Data from specific cells in Multiple Files #3

    All files have freeze pane and Col.B is not visible.
    Remove all freeze pane from all files or let all columns visible.

  19. #19
    Registered User
    Join Date
    01-01-2024
    Location
    India
    MS-Off Ver
    2019
    Posts
    46

    Re: Extract Data from specific cells in Multiple Files #3

    I added freeze pane later.... after I "fixed" the formula.

  20. #20
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Extract Data from specific cells in Multiple Files #3

    Do as you like.
    That was a reson, so good luck.

  21. #21
    Registered User
    Join Date
    01-01-2024
    Location
    India
    MS-Off Ver
    2019
    Posts
    46

    Re: Extract Data from specific cells in Multiple Files #3

    What I meant was freeze pane was added later. The macro wasn't working without it either. And after I changed the formula I added freeze pane to start using the sheet.
    Last edited by Basty1311; 03-06-2024 at 09:57 AM.

  22. #22
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Extract Data from specific cells in Multiple Files #3

    OK, then upload some files without freeze pane and master workbook that doesn't work.

  23. #23
    Registered User
    Join Date
    01-01-2024
    Location
    India
    MS-Off Ver
    2019
    Posts
    46

    Re: Extract Data from specific cells in Multiple Files #3


  24. #24
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Extract Data from specific cells in Multiple Files #3

    They all have freeze pane!!!

  25. #25
    Registered User
    Join Date
    01-01-2024
    Location
    India
    MS-Off Ver
    2019
    Posts
    46

    Re: Extract Data from specific cells in Multiple Files #3

    oh the other files !!!!!!!! lol I thought you meant the main file. Cant help it with the other files... those files are exported as they look from a website.. Is there a macro to remove freeze pane from all those files in one go?

  26. #26
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Extract Data from specific cells in Multiple Files #3

    This will open all the files in the folder and if the file has "Data sheet", it will remove FP and close.
    And you will find the time for open/close files.
    If it is not freeze paned, it will finish in just a second.
    Please Login or Register  to view this content.

  27. #27
    Registered User
    Join Date
    01-01-2024
    Location
    India
    MS-Off Ver
    2019
    Posts
    46

    Re: Extract Data from specific cells in Multiple Files #3

    It works now lol. Why didnt we think of this earlier ? This FP issue arose in an earlier thread too. Anyway, thank you.

  28. #28
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Extract Data from specific cells in Multiple Files #3

    Because you didn't upload the files with freeze pane.
    If you did, I found it way earlir.

    Everything was your bad presentation.

    If that takes care of your original question, select Thread Tools from the menu link above and mark this thread as SOLVED.
    Your other threads as well.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Last edited by jindon; 03-06-2024 at 07:01 PM.

+ 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. [SOLVED] Extract Data from specific cells in Multiple Files #2
    By Basty1311 in forum Excel Programming / VBA / Macros
    Replies: 36
    Last Post: 02-19-2024, 02:09 AM
  2. [SOLVED] Extract Data from specific cells in Multiple Files
    By Basty1311 in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 01-05-2024, 07:25 AM
  3. Vba codes to extract specific data from multiple pdf files to excel
    By kylechace in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-03-2021, 12:53 AM
  4. [SOLVED] Extract specific cells from multiple excel files in same folder to new summary file
    By Derek Holden in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-02-2014, 01:43 AM
  5. [SOLVED] Extract and transpose specific cell data from multiple files
    By Mad-Dog in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-17-2014, 03:44 AM
  6. Extract specific column data from specific sheet from multiple files in a folder
    By piggyfox in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-31-2013, 11:51 AM
  7. Macro to extract data from multiple workbooks, specific sheet, specific cells
    By crissandraauree in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-29-2012, 03:54 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