Results 1 to 4 of 4

Copy paste a particular cell value from all Sheets to Index Sheet

Threaded View

  1. #1
    Registered User
    Join Date
    08-11-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    58

    Copy paste a particular cell value from all Sheets to Index Sheet

    Good Day All!!

    I need little help in fetching the count value available in each sheet to the Index Sheet.

    The workbook contains:
    1. Index Sheet
    2. Sheet-1, Sheet-2, Sheet-3 ....etc
    3. Each sheet has the count of parameters in Column-N and Cell-N1
    4. Index has the list of Sheet Names, Sheet Description and No of Parameters

    Solution required:
    a. Go to Sheet(i)
    b. Copy Sheet(i).N1
    c. In Index Sheet
    x) search for Sheet(i).row
    x) Paste Sheet(i).N1 to its respective count of parameters in Index Sheet


    Sub Macro1()
    
    Dim LR As Long
    Dim S As Worksheet
    
    For Each S In Worksheets
    With S
    
    LR = .Cells(Rows.Count, 2).End(xlUp).Row
    
    'Flag rows to be copied
        .Range("N2:N" & LR).FormulaR1C1 = _
            "=IF(AND(ISNUMBER(LEFT(RC[-12],2)*1),RIGHT(RC[-12],2)<>""-L"",RIGHT(RC[-12],2)<>""-A"",RIGHT(RC[-12],6)<>""-GROUP""),1,"""")"
        .Range("N2:N" & LR).Value = .Range("N2:N" & LR).Value
    
    'Count the rows to be copied in N1 of each sheet
    For i = 1 To Sheets.Count
        If Sheets(i).Name = "Index" Then GoTo zz
        x = Range("N" & Rows.Count).End(xlUp).Row
        Sheets(i).Range("N1") = Application.WorksheetFunction.Countif(Sheets(i).Range("N2:N500" & x), "1")
    zz:
    Next i
    
    'Copy the count available in Column N1 of each sheet to its respective row in Index Sheet - Column D
    "Help Required here"
    
    End With
    Next
    Kind Regards,
    Sreeks
    Attached Files Attached Files
    Last edited by sreeks; 09-14-2017 at 04:41 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Copy from all sheets and paste it in one sheet
    By sreeks in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 09-20-2017, 08:35 AM
  2. [SOLVED] Copy Paste From Rawdata Sheets to Multiple Sheets Based on Sheet names
    By farrukh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-16-2017, 11:01 PM
  3. [SOLVED] VBA - Create New Sheets Based on Index Sheet Cell Values with Link to Index Sheet
    By order in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-02-2017, 06:23 PM
  4. [SOLVED] Macro to copy value across sheets, using another sheet as index
    By Lemmy Kickit in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-09-2016, 01:22 PM
  5. [SOLVED] Find value in a cell in different sheets and copy and paste other cells to another sheet
    By the-hawk in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-04-2013, 03:36 AM
  6. VBA Copy Multiple Sheets using Sheet Index
    By ker9 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2011, 04:32 PM
  7. [SOLVED] copy from one sheet and paste into other sheets
    By TUNGANA KURMA RAJU in forum Excel General
    Replies: 3
    Last Post: 12-08-2005, 11:10 AM

Tags for this Thread

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