+ Reply to Thread
Results 1 to 9 of 9

Consolidate 7 worksheet into 1 worksheet if "Application no = Blank"

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-02-2010
    Location
    singapore
    MS-Off Ver
    MS365
    Posts
    287

    Consolidate 7 worksheet into 1 worksheet if "Application no = Blank"

    Dear All,

    Seeking for professional help again.

    I need to generate a non-application report every month.
    What I currectly doing is copy & paste. It really time consuming.

    I have attached the workbook for clear understanding.

    There are total 7 worksheet which is segregate by department.

    I'm required to provide non-application information of each department.
    And would need to compile all non-application information together at one worksheet for the 7 departments.

    Appreciate your help
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    09-02-2010
    Location
    singapore
    MS-Off Ver
    MS365
    Posts
    287

    Re: Consolidate 7 worksheet into 1 worksheet if "Application no = Blank"

    The password is 8888 incase it being lock

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Consolidate 7 worksheet into 1 worksheet if "Application no = Blank"

    Cyee,

    To identify the rows where application no is blank, which other rows will always have data in them? I checked some of your tabs and sometimes Country is filled up and Application no is blank, otherwise BU is filled up and Application no is blank. Should i consider Country to be the most filled up column? The reason i ask this is i would like to identify which is the last row in each sheet that i need to check for.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Forum Contributor
    Join Date
    09-02-2010
    Location
    singapore
    MS-Off Ver
    MS365
    Posts
    287

    Re: Consolidate 7 worksheet into 1 worksheet if "Application no = Blank"

    Hi Arlette,

    From time to time, there will have new customer to add in. I'm the one who will update all the customer into the worksheet.
    And everymonth, I need to send out report for those customer without "Application No".

    Therefore, could you dont set for the last row to check?

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Consolidate 7 worksheet into 1 worksheet if "Application no = Blank"

    Therefore, could you dont set for the last row to check?
    What do you mean by this?

    I wanted to know if there is a way to identify the last row in which you have data entered in your file. Its not static and you have color formats so i am not able to identify using code.

  6. #6
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Consolidate 7 worksheet into 1 worksheet if "Application no = Blank"

    hi cyee, can you provide a bit more explanation on what should be consolidated.

    If App number is empty and there is no data in this particular row is it eligible?

    What defines data table size?

    What is the max possible volume of data rows on each sheet?

    It would be helpful to see result sheet you need to obtain basing on the sample file provided.

  7. #7
    Forum Contributor
    Join Date
    09-02-2010
    Location
    singapore
    MS-Off Ver
    MS365
    Posts
    287

    Re: Consolidate 7 worksheet into 1 worksheet if "Application no = Blank"

    Sorry for mis understanding.
    BU & Company will be the most filled up column.

    Appreciate your help.

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Consolidate 7 worksheet into 1 worksheet if "Application no = Blank"

    You can use this code. Ensure that the BU column is filled with information for all rows which need to be included in the Consolidated sheet.
    Option Explicit
    Dim lrow As Long
    Dim i As Long
    Dim j As Long
    
    Sub compile_data()
    
    Application.ScreenUpdating = False
    
    If Not Evaluate("ISREF(Summary!A1)") Then
        Worksheets.Add(After:=Worksheets(Worksheets.Count)).Name = "Summary"
    End If
    Worksheets("Food").Rows("7:7").Copy Worksheets("Summary").Range("A1")
    
    For i = 1 To Worksheets.Count
        With Worksheets(i)
            If .Name <> "Summary" And .Name <> "COVER" Then
                lrow = .Range("A" & Rows.Count).End(xlUp).Row
                For j = 8 To lrow
                    If .Range("H" & j).Value = "" Then
                        .Range("A" & j & ":K" & j).Copy Worksheets("Summary").Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
                    End If
                Next j
            End If
        End With
    Next i
    
    Application.ScreenUpdating = True
    
    End Sub

  9. #9
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Consolidate 7 worksheet into 1 worksheet if "Application no = Blank"

    option, press button "Non-Application report" on Cover Sheet
    Attached Files Attached Files
    Last edited by watersev; 02-29-2012 at 06:41 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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