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 224305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:18:15+00:00 2026-05-11T19:18:15+00:00

I have a spreadsheet that has information in groups. The header row contain company

  • 0

I have a spreadsheet that has information in groups. The header row contain company names and information and then the grouped rows beneath them contain names of people in the company.

Company Name | Number of Employees | Revenue |
Employee Name | Email | Phone

Is there anyway to sort by the number of employees and/or revenue and keep the grouped employee information below the company with the information?

Normally when I try it, it will sort the company information but keep the employee information in the order that it is entered.

  • 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-11T19:18:16+00:00Added an answer on May 11, 2026 at 7:18 pm

    If I understand your question correctly, I have a way you can accomplish what you want (don’t know if there is a more efficient method).

    Write code which will, for each company header row, copy the number of employess and revenue data into two of the chosen unused columns. The data needs to be copied into the columns for both the header company row and detail employee rows.

    In the third column assign a sequence number. This is to keep data together and in order when sorting by employee/revenue.

    Now you can sort by either the newly created number of employees and/or revenue columns (along with the sequence column to maintain ordering within company).

    After the sort you can delete the extra copied data rows.

    So if your data looked like this to start with…

    A              B                  C
    Penetrode      200                750000
    Micheal Bolton mbolton@pene.com   555-555-3333
    Samir N        samirn@pene.com
    Initech        500                500000
    Bill Lumbergh  umumyeah@init.com  555-555-1212    
    Peter Gibbons  pgibbons@init.com  555-555-2222
    

    Your code would then copy the employee count and revenue data and sequencify the rows using three unused columns.

    A              B                  C             D                  E       F
    Penetrode      200                750000        200                750000  1
    Micheal Bolton mbolton@pene.com   555-555-3333  200                750000  2
    Samir N        samirn@pene.com    555-555-3334  200                750000  3
    Initech        500                500000        500                500000  4
    Bill Lumbergh  umumyeah@init.com  555-555-1212  500                500000  5
    Peter Gibbons  pgibbons@init.com  555-555-2222  500                500000  6
    

    Then you can code a sort on any of the column combos: (D,F), (E,F), (D,E,F), or (E,D,F)

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

Sidebar

Ask A Question

Stats

  • Questions 123k
  • Answers 123k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Everyone else uses 4 spaces. That is the only reason… May 12, 2026 at 1:04 am
  • Editorial Team
    Editorial Team added an answer The progress that is showing up is probably updating the… May 12, 2026 at 1:04 am
  • Editorial Team
    Editorial Team added an answer Here is something that a co-worker figured out just using… May 12, 2026 at 1:04 am

Related Questions

Lets say I have a table CUSTOMERS with a key of CUSTOMER_ID. I would
I have two spreadsheets... when one gets modified in a certain way I want
(Please forgive my ignorance on Excel add-ins, and feel free to correct my teminology
I have a sharepoint site that has an excel spreadsheet that I need to

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.