• Front Page
  • Search
    • Digital Education
    • Terry Freedman's Books Bulletin
  • RSS
    • Welcome
    • The "About" Page
    • Testimonials
    • CV/Resumé
    • My Writing
    • Published articles
  • Corrections Policy
Menu

ICT & Computing in Education

Articles on education technology and related topics
  • Front Page
  • Search
  • Newsletters
    • Digital Education
    • Terry Freedman's Books Bulletin
  • RSS
  • Info
    • Welcome
    • The "About" Page
    • Testimonials
    • CV/Resumé
    • My Writing
    • Published articles
  • Corrections Policy

Section of an artcile records spreadsheet, by Terry Freedman

Using ChatGPT as a search engine

December 20, 2022

Introduction

Although I haven’t been overly impressed with ChatGPT as a creative force, I have to say that I am impressed with it as an alternative to Google.

This afternoon I was trying to figure out how to do something in Google Sheets. No matter how I framed the query in Google, it came up with results I found somewhat unhelpful. Either they were overkill in terms of what I wanted to achieve, or they led to a YouTube video, which I didn’t want to sopend time watching, or they led to someoine trying to sell me some kind of souped-up add-on. I wasted at least half an hour on this quest.

So I typed the query into ChatGPT and it gave me exactly what I was looking for in seconds. Here’s what it said:

My query

In google sheets, how can I add up the number of items in column A that meet a specific criterion AND have the corresponding box in column B tickedin google sheets, how can I add up the number of items in column A that meet a specific criterion AND have the corresponding box in column B ticked.

ChatGPT’s answer

To add up the number of items in column A that meet a specific criterion AND have the corresponding box in column B ticked in Google Sheets, you can use the COUNTIFS function.

The COUNTIFS function allows you to specify multiple criteria to count the number of cells that meet all the criteria.

Here's the syntax for the COUNTIFS function:

Copy code

COUNTIFS(range1, criteria1, [range2, criteria2, ...])

  • range1 is the range of cells that you want to apply the first criteria to

  • criteria1 is the criteria that cells in range1 must meet

  • range2, criteria2, etc. are optional additional ranges and criteria that you can specify

For example, suppose you have a sheet with the following data:

To count the number of items in column A that are "Apples" and have the corresponding box in column B ticked, you can use the following formula:

Copy code

=COUNTIFS(A:A, "Apples", B:B, "X")

This formula will return the result 2, because there are two rows that meet both criteria (rows 1 and 3).

You can use the COUNTIFS function with any criteria that you want. For example, to count the number of items in column A that are not "Apples" and have the corresponding box in column B ticked, you can use the following formula:

Copy code

=COUNTIFS(A:A, "<>Apples", B:B, "X")

This formula will return the result 1, because there is only one row that meets both criteria (row 4).

I tried it out on my own spreadsheet, and it was just what I wanted. Now, I had already worked out that what I needed was probably the Countifs function or, possibly, the AND function. But as I said, the sites that I found which purported to explain how to use it were not exactly easy to apply to my own needs. Thinking about it, the reason the ChatGPT solution worked so well was that it was, in effect, custom-made as an answer to my specific query. I didn’t have to try and translate a complicated setup devised for sales managers into my relatively simple requirement of an article record.

In Using and Teaching Computing & ICT Tags ChatGPT, spreadsheet, AI, artificial intelligence
← Season's greetings!On This Day: Why I Dread The Thought Of Benign Algorithms (Updated) →
Recent book reviews
curiosity.jpg
Review: Cabinet of Curiosity - Developing a Superpower

School life ought to consist of far more than just a utilitarian pursuit of exam grades over all other considerations.

Read More →
dr bot.jpg
Review: Dr Bot - Why Doctors Can Fail Us-and How Al Could Save Lives

In this comprehensive and highly readable Dr Bot, Blease tackles a wide range of issues, including some that are apposite for those working in schools.

Read More →
books a manifesto.jpg
Review: Books A Manifesto - Or, How to Build a Library

A compelling read that's bound to make even the most well-read among us feel somewhat under-educated.

Read More →
algospeak.jpg
Review: Algospeak-How Social Media is Transforming the Future of Language

A fascinating insight into how language evolves and adjusts according to changes in culture.

Read More →
polish.jpg
Need a break? This book of short stories could be just the ticket!

The 39 stories in this collection span a hundred years, during which Polish society underwent seismic political change several times over.

Read More →
digital culture shock.jpg
Review: Digital Culture Shock: Who Creates Technology and Why This Matters

An interesting look at how differently societies across the globe view and use technlogogy.

Read More →
the idea machine.jpg
Review: The Idea Machine: How Books Built Our World and Shape Our Future

The written word has endured for millennia, and herein you'll discover why.

Read More →
craftland.jpg
Review: Craftland: A Journey Through Britain's Lost Arts and Vanishing Trades

A book that offers a glimpse into the way traditional crafts were practised before the Industrial Revolution.

Read More →
digital culture shock.jpg
Quick look: Digital Culture Shock: Who Creates Technology and Why This Matters

Chapters look at how technology is used around the world, online communities, and building a culturally just infrastucture, amongst other topics.

Read More →
Artificially Gifted Notes from a Post-Genius World.jpg
Quick look: Artificially Gifted: Notes from a Post-Genius World

The author, Mechelle Gilford, explores how AI may render our usual way of interpreting the concept of “gifted” obsolete.

Read More →
Dig+Ed+Banner.jpg

Contact us

Privacy

Cookies

Terms and conditions

This website is powered by Squarespace

(c) Terry Freedman All Rights Reserved