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

  • SEARCH
  • Home
  • 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 6145365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:47:05+00:00 2026-05-23T18:47:05+00:00

hi guys I need help on coding this for work 1 2 3 4

  • 0

hi guys I need help on coding this for work

1 2 3 4 5 6 7 8 9 10                            
y n y y y n y n y  y          
n y n y n y n y y  n             
y n y y y y n y n  y 

I have this data in excel and I want to iterate through these data row by row and output the top integer without skipping cells of the cells that has a n in it

so the output would be somethign like this

1 2 3 4 5 6 7 8 9 10                            
y n y y y n y n y  y   2 6 8            
n y n y n y n y y  n   1 3 5 7 10     
y n y y y y n y n  y   2 7 9

I’m a nub to using excel macro and would really be thankful if someone could help me out wit this problem to save some time.

  • 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-05-23T18:47:06+00:00Added an answer on May 23, 2026 at 6:47 pm

    From

    1 2 3 4 5 6 7 8 9 10
    y n y y y n y n y y
    n y n y n y n y y n
    y n y y y y n y n y 
    

    you can produce a second sheet, where you convert/translate n to 1 and y to 0:

    1 2 3 4 5 6 7 8 9 10
    0 1 0 0 0 1 0 1 0 0
    1 0 1 0 1 0 1 0 0 1
    0 1 0 0 0 0 1 0 1 0 
    

    Then you can produce a third sheet, where you multiply the cell from the former sheet with the column header, which gives:

    1 2 3 4 5 6 7 8 9 10
    0 2 0 0 0 6 0 8 0 0
    1 0 3 0 5 0 7 0 0 10
    0 2 0 0 0 0 7 0 9 0 
    

    Hiding Nulls should be an Option too, so you would end with

    1 2 3 4 5 6 7 8 9 1 
      2       6   8    
    1   3   5   7     1 
      2         7   9   
    

    Is this enough, or do you need to glue the result together?

    1 2 3 4 5 6 7 8 9 1 Glueing
      2       6   8     2 6 8
    1   3   5   7     1 1 3 5 7 
      2         7   9   2 7 9 
    

    There are string concatenation functions, but can/must the result be glued together in a single field, or do you need one field per value? However, if the glueing brings the Zeros back, you can suppress them with ‘if …’.

    You catenate togeter on a new sheet:
    In A2 A2′, where ‘ marks the previous sheet. And in A3, A4, A5 and so on A3′, A4′, A5 and so on, but on B2 you catenate A2+B2’ – the field to the left and the field from the previous sheet.

    And this cell cat (A2; Table4.A3) you can pull to the bottom and to the right, and it will step by step glue together the whole expression.

    You can link the result to the first page back.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey Guys...need help. Working on a project and get this error on the Output
Hey guys I need some help with this: I have two view controllers, let's
Hay guys, i need help with a REGEX. I have the got the value
I have one jQuery code and need some help from u guys to improve
Guys i need some help here , im getting this error here at the
Guys Need your help. I have a shadow applied to Div thru CSS, but
Need help badly guys, I have three tables tbl_questions, tbl_answers and tbl_link_qa tbl_questions is
Hey guys need some more help I have 3 tables USERS, PROFILEINTERESTS and INTERESTS
Hi Guys i need some help with Jquery Validadion Plugin I have an input
Hey guys i need some help with logic in my app. I have an

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.