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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:03:43+00:00 2026-06-16T15:03:43+00:00

Gah, I know this has to be easier than I am making it out

  • 0

Gah, I know this has to be easier than I am making it out to be:

I have a simple spreadsheet of three columns. The first column is the one I am interested in: it contains a value from 00-49. (These numbers indicate the topic under which an item in the third column falls.)

All I want to do is to count the number of times each of these numbers occurs. Right now, I am using this:

=SUM(COUNTIF(Sheet1!A2:A6716, {"00"}))

in a second sheet. It works, but I have found no way to enter the value (00, 01, 02, etc.) without doing it by hand. I thought I would do it clumsily by iterating on a column next to one with this function (essentially starting with 00 and then doing A1+1 on a fill down), but that doesn’t work at all — and I tried several variations.

As you can see, I have quite a few rows here, and I’d like to automate the counting. I tried using a function that built an array, but I couldn’t get it to work. Nor could I figure out how to make a pivot table that would do this.

Having entered the first ten (of fifty topics) in the formula above, I know, for instance that I have 638 rows that begin have 00 in the first column, 51 rows of 01, 277 rows of 02, etc.

For reference, the first few rows look like this:

00   0.73,  10.2307/1496207
00   0.69,  10.2307/1496209
00   0.68,  10.2307/1496208

Until you get to this:

49   0.11   10.2307/1499809

For anyone interested, the second column is the proportion of that the topic (the first column) in the document, and the third column is the DOI for each document.

I’ve tried various solutions from here on StackExchange as well as from Google Search results. Someone please show me the one obvious thing that I have obviously missed in trying to think this through.

  • 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-16T15:03:44+00:00Added an answer on June 16, 2026 at 3:03 pm

    I would use:

    =COUNTIF(Sheet1!A2:A6716, ROW() - 1)
    

    Adjust ROW() – 1 to match your offset, if you start at row 3 you need to – 2.

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

Sidebar

Related Questions

Gah, I never liked PHP, it's so impure... Now I have to use it
Ok, gah, syntax conversion issue here...How would I do this in AutoIt? String theStr
Gah! This is really causing me hassle today. Suddenly without warning '@' (at symbol)
EDIT: It looks like I'm completely misinformed. Please close this thread. Gah. For the
I am trying to write a very simple Chrome extension. All it is at
I'm porting some Java code to C#, and I ran into this idiom used
EDIT 22 March 2011 : This question is no longer that relevant since Youtube
Possible Duplicate: Retrieve column definition for stored procedure result set I use the following
I am working on a small project with SVN. I checked out the project:
Ok so I'm going to try and make this as clear as possible. I

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.