Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9021371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:14:25+00:00 2026-06-16T05:14:25+00:00

I have an excel sheet,which has 144 coulms-(4 columns contains one set).i.e 36 sets

  • 0

I have an excel sheet,which has 144 coulms-(4 columns contains one set).i.e 36 sets i do have. Now how can i take out only the Non-Null data from the 2000X350 Excel sheet matrix data,into an 2D array using VBScript?

Here is an Example sheet:

   PID  T1 T1SD T1CD T1ST T2 T2SD T2CD T2ST T3 T3SD T3CD T3ST T4 T4SD T4CD T4ST ........
    10  a   b          b   t             r                     t   k   l     o
    11                     p   p    m    d   n   n    n    b
    .
    .

PID on the column number 11 always.Evey set is comprised of (TN,TNSD,TNCD,TNST) where N=1 to 36. Array will not pick up data into it only iff a set full contains NUll data . Once all the data pick up will be done,it should then relase the data to each row. But thing should be remembered that if 2D array should assign data to the row from where it has been picked up.

Data(1,1)=(a,b,,b,t,,,r,t,k,l,o) During pick up
Cell(2,12)=(a,b,,b,t,,,r,t,k,l,o) when releasing the data.

that means data should need to mapped to the correct rows(setwise)

Please let me know if you have any confusion.

EDIT:
Output table

    PID  T1 T1SD T1CD T1ST T2 T2SD T2CD T2ST  T3 T3SD T3CD T3ST T4 T4SD T4CD T4ST
    10  a   b          b   t              r    t   k   l     o
    11  p   p    m     d   n   n    n    b

Thanks,Arup

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T05:14:27+00:00Added an answer on June 16, 2026 at 5:14 am

    Here is a partial answer that should get you a nudge in the right direction.

    Sub Macro1()
    
    Dim whichT As Integer
    Dim whichC As Integer
    Dim allNull As Boolean
    Dim contents As String
    
    For whichT = 0 to 8 ' this is which T set
      allNull = True
      for whichC = 1 to 4 ' this is which of the 4 elements
        contents = Cells(2, whichT * 4 + whichC + 1)
        Debug.Print "Contents of col ", whichT * 4 + whichC + 1, "are", contents
        If Len(contents) > 0 then allNull = False  ' any one of the non-blank elements sets to False
      Next whichC
      If allNull Then ... ' do some processing to move over the next 4.
    Next whichT
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Excel sheet which has 200 columns. Now number of rows are
Possible Duplicate: correlation matrix in r I have an excel sheet which has 700
I have an excel sheet that has several headers. One of the header is
lets say I have a xls sheet with just one column which has the
I have an excel sheet which has about 150,000 records, operations like find replace,
I have an excel sheet which has some huge data. Data is organized as
I have a excel sheet which has around 5000 rows in it.I have used
I have a form on an Excel sheet that has two mandatory cells which
I have a large Excel sheet auto generated from C#, which outputs all columns
I am preparing an Excel sheet in which I have to maintain the version

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.