<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Prasanth Janardhanan on Medium]]></title>
        <description><![CDATA[Stories by Prasanth Janardhanan on Medium]]></description>
        <link>https://medium.com/@prasanthmj?source=rss-7548872330a2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FPHZhmVoVtXnr1DN_Xs3NA.jpeg</url>
            <title>Stories by Prasanth Janardhanan on Medium</title>
            <link>https://medium.com/@prasanthmj?source=rss-7548872330a2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 03:55:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prasanthmj/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ChatGPT 4o andThe Future of Human-Computer Interaction: How Conversational Interfaces and Large…]]></title>
            <link>https://medium.com/@prasanthmj/chatgpt-4o-andthe-future-of-human-computer-interaction-how-conversational-interfaces-and-large-9bc907f4a09b?source=rss-7548872330a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/9bc907f4a09b</guid>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[chatgpt4]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Prasanth Janardhanan]]></dc:creator>
            <pubDate>Fri, 17 May 2024 06:57:01 GMT</pubDate>
            <atom:updated>2024-05-17T06:57:01.192Z</atom:updated>
            <content:encoded><![CDATA[<h3>ChatGPT 4o andThe Future of Human-Computer Interaction: How Conversational Interfaces and Large Language Models are Changing the Game</h3><p>Picture this: You’re a sales manager trying to stay on top of your team’s performance. Instead of navigating through complex menus and dashboards, you simply turn to your computer and say, “Get me the list of all new leads for the last month.” Instantly, your screen displays a neatly organized list of every new lead your team has generated, complete with contact information, lead source, and potential revenue.<br>Or imagine this: You’re a business analyst tasked with identifying trends and opportunities in your company’s sales data. Rather than writing complex queries and creating visualizations from scratch, you simply ask your computer, “Get me the sales report for the last month for California for blue widgets.” Moments later, you’re presented with a comprehensive report that breaks down sales by region, product, and customer segment, highlighting key insights and areas for growth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*amhFg7d7D7d2p7yhdFTxVw.jpeg" /></figure><p>Imagine a world where interacting with your computer is as natural and intuitive as having a conversation with a friend. A world where you can simply express your intent, ask questions, or give commands in plain, natural language, and your computer understands and responds accordingly. This is the promise of large language models (LLMs) and conversational interfaces, and it’s not as far off as you might think.</p><p>The potential applications of this technology go far beyond mere convenience or efficiency. Imagine being able to plan a vacation simply by telling your device, “I want to go somewhere warm and sunny with great beaches and cultural attractions.” Your AI assistant would then generate a personalized itinerary, complete with flight and hotel recommendations, based on your preferences and budget.</p><p>Or picture yourself in the kitchen, trying to cook a new recipe. Instead of constantly referring back to a cookbook or website, you could simply ask your AI assistant questions like, “How much salt should I add?” or “What temperature should I set the oven to?” Your assistant would provide real-time guidance and support, making cooking a breeze.</p><p>In the workplace, conversational interfaces powered by LLMs could revolutionize the way we collaborate and get work done. Imagine being able to generate reports, analyze data, or even write code simply by describing what you want to do in natural language. Your AI assistant would handle the technical details, allowing you to focus on higher-level strategy and decision-making.</p><p>As we saw in the movie “Her,” LLMs raise profound questions about the nature of intelligence, empathy, and even consciousness itself. By blurring the lines between human and machine communication, they challenge us to rethink what it means to be human in an age of artificial intelligence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ci4kBMaiFLBqMB6wtp8Ajg.jpeg" /></figure><p>Of course, there are also challenges and risks associated with this technology that we must carefully consider and address. Issues of privacy, security, bias, and accountability become even more critical when dealing with systems that can understand and generate human language. And as with any powerful technology, there is always the potential for misuse or unintended consequences.</p><p>But despite these challenges, the potential benefits of LLMs and conversational interfaces are too great to ignore. Imagine being able to access and analyze vast amounts of data using natural language, or to create complex models and simulations simply by describing what you want to see. Imagine a world where anyone, regardless of their technical skills or physical abilities, can easily interact with computers and access information.</p><p>As we stand at the threshold of this new era of human-computer interaction, it’s up to us to shape the future in a way that benefits everyone. Whether you’re a technologist working on the cutting edge of AI research, a business leader looking to streamline your operations, or simply someone who wants to stay informed about the latest developments in technology, there has never been a more exciting time to engage with this transformative technology.</p><p>Read More here where some of the common scenarios are reimagined with conversational interfaces: <a href="https://prasanthmj.github.io/ai/llms-to-transform-ui/">https://prasanthmj.github.io/ai/llms-to-transform-ui/</a></p><p>So what do you think? Are you ready for a world where talking to your computer is as natural as talking to a friend? Where the boundaries between human and machine intelligence are blurred, and the possibilities for innovation and progress are endless? The future of human-computer interaction is here, and it’s up to us to make the most of it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9bc907f4a09b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is Cleric the End of the Line for SRE Jobs? Unpacking the AI Revolution in DevOps]]></title>
            <link>https://medium.com/@prasanthmj/is-cleric-the-end-of-the-line-for-sre-jobs-unpacking-the-ai-revolution-in-devops-55bedc75ae64?source=rss-7548872330a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/55bedc75ae64</guid>
            <dc:creator><![CDATA[Prasanth Janardhanan]]></dc:creator>
            <pubDate>Sat, 23 Mar 2024 05:20:37 GMT</pubDate>
            <atom:updated>2024-03-23T05:20:37.390Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2v4hpvCX_vXLVbj5ozw9pw.png" /></figure><p>Hey there! So, there’s this new AI on the block called <a href="https://cleric.io/">Cleric</a>, and it’s stirring up quite the buzz in the tech world. Designed to tackle the hefty tasks of Site Reliability Engineering (SRE) and DevOps, Cleric aims to manage, optimize, and even “heal” software infrastructures autonomously. But with all its bells and whistles, folks in the industry are left wondering: Are we SREs about to be replaced?</p><h4>Meet Cleric: A Game-Changer or a Job Snatcher?</h4><p>Imagine having a teammate that never sleeps, eats, or takes coffee breaks, handling thousands of alerts and fixing issues faster than you can say “Did anyone try turning it off and on again?” That’s Cleric for you. It’s like having a superhero sidekick, except it’s an AI with a mission to make SREs’ lives easier. Or so it claims.</p><p>Cleric’s creators, Shahram Anver and Willem Pienaar, are no strangers to the grind of managing digital infrastructures. With backgrounds that scream “we know our stuff,” they’ve secured a cool $4.3M to bring Cleric to life. The idea? To save engineering teams from the endless cycle of on-call support and let them focus on the juicy stuff that robots can’t handle… yet.</p><h4>The Buzz and the Skepticism</h4><p>Cleric’s entrance has everyone talking. On one hand, the promise of less grunt work and more focus on high-impact projects sounds like a dream. But then, there’s the nagging question of what this all means for the future of human SREs. Will Cleric be the new team lead, leaving us mere mortals in the dust?</p><p>The tech community’s reaction is a mixed bag of excitement, curiosity, and a good dose of skepticism. Sure, an AI that can “heal” software sounds cool, but can it really understand the chaotic beauty of our organizational messes? And let’s not even start on the privacy and security headaches.</p><h3>Navigating the Future: Are We Doomed or Just Getting Started?</h3><p>So, what’s the deal? Are SRE jobs going the way of the dodo, or is Cleric just another tool in our ever-expanding toolkit? Here’s how some folks are seeing it:</p><p><strong>Non-Critical Tasks for the Win:</strong> Maybe let Cleric handle the routine diagnostics and leave the brain-busting problems to us humans. After all, a robot can’t appreciate the art of a perfectly timed coffee break.<br><strong>Chaos Engineering Buddy:</strong> Think of Cleric as a sparring partner in chaos engineering, testing our defenses against those “oops” moments that make life interesting.<br><strong>Balance Is Key:</strong> Integrating AI tools like Cleric doesn’t mean handing over the keys to the kingdom. It’s about finding that sweet spot where AI supports us without kicking us to the curb.<br><strong>Keep It Real:</strong> As cool as Cleric sounds, it’s not going to magically solve all our problems. Keeping our expectations in check can save us a lot of disappointment down the line.</p><p>As Cleric steps out of the shadows and into the spotlight, the journey from curiosity to acceptance will be one to watch. The big question isn’t just whether Cleric can live up to its hype, but how we, as a community, adapt to the changing landscape of SRE and DevOps.</p><p>Are we looking at the end of the road for SRE jobs, or is Cleric just the beginning of a new chapter where AI and humans collaborate to tackle the digital world’s challenges? Only time will tell, but one thing’s for sure: the conversation around Cleric is a glimpse into an exciting, albeit uncertain, future. So, let’s keep those dialogues open, share our thoughts, and maybe, just maybe, we can all figure out how to thrive in this AI-assisted world together.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55bedc75ae64" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lessons learned developing an App using Google APIs]]></title>
            <link>https://medium.com/@prasanthmj/lessons-learned-developing-an-app-using-google-apis-dff3f7b91be0?source=rss-7548872330a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/dff3f7b91be0</guid>
            <category><![CDATA[gmail-api]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[lockdown]]></category>
            <dc:creator><![CDATA[Prasanth Janardhanan]]></dc:creator>
            <pubDate>Fri, 28 Jun 2019 08:47:21 GMT</pubDate>
            <atom:updated>2019-06-28T08:47:21.788Z</atom:updated>
            <content:encoded><![CDATA[<p>There are a number of quite popular Apps/Add-ons that enhances Gmail and adds features to it. These apps are very popular because people find them useful.</p><p><a href="https://www.boomeranggmail.com/">Boomerang for Gmail</a> (Schedule emails to be send at specific time)</p><p><a href="https://www.streak.com/">Streak</a> (CRM integrated with Gmail)</p><p><a href="https://www.rightinbox.com/">RightInbox for Gmail</a> (email productivity )</p><p>Many Gmail enhancement apps started as Chrome extensions since there is no published API to add on to Gmail User interface. Those apps had to be installed as a Chrome/Firefox extension. When the user visits Gmail.com, the extension updates Gmail’s HTML (DOM). This method is very difficult to maintain because whenever the Gmail interface is changed, the app will stop working.</p><p>Streak released a free library called Inbox SDK (<a href="https://www.inboxsdk.com/">https://www.inboxsdk.com/</a>) to solve this problem. This library is enormously helpful for developers willing to create Gmail extensions.</p><p>I created a simple chrome extension to <a href="https://chrome.google.com/webstore/detail/strikethrough-for-gmail/bafcgdbnifplmbidjllnefgbhglckgge?hl=en">add strike-through button to Gmail</a> using Inbox SDK. Surprisingly , that simple add-on became quite popular in a short time and many users wrote to me thanking for the free add-on.</p><p>Meanwhile, Google opened <a href="https://developers.google.com/gmail/api/v1/reference/">Gmail API</a> . It is now possible to build apps using these APIs. There are API wrappers in Python, PHP ,Java and also there is Google’s own platform: <a href="https://developers.google.com/apps-script/reference/gmail/">Apps Script</a>. You can write a script to <a href="https://blog.gsmart.in/alert-by-email-when-input-data-on-google-spreadsheet-meets-given-condition/">send and email when a Google sheet is updated</a> or you can parse and collect data <a href="https://blog.gsmart.in/parse-and-extract-data-from-gmail-to-google-sheets/">from Gmail to a Google sheet automatically</a>.</p><p>I wrote a web app that will auto-reply to emails based on the rules you set. For example, you can setup a rule to auto-reply between 7pm and 8am. (I am not on my desk …) Or auto reply to specific contacts. Any combination of these conditions.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FpivD1MdosSs%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DpivD1MdosSs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FpivD1MdosSs%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ae95bd258fad58041af87fe9e5bd0ac9/href">https://medium.com/media/ae95bd258fad58041af87fe9e5bd0ac9/href</a></iframe><p>The App was hosted on my own servers. When the user signs up, the app has to <a href="https://developers.google.com/gmail/api/auth/about-auth">get OAuth 2 token</a>.</p><p>The user has to explicitly provide access . <a href="https://www.youtube.com/watch?v=GGXFQUmZTf4&amp;feature=youtu.be">The approval screen will show</a> each type of access the app is asking.</p><p>Once the user signup is complete, the app will use <a href="https://developers.google.com/gmail/api/guides/push">Google’s PubSub API</a> to subscribe to user’s email stream. Whenever there is a new email received in the user’s inbox, the API will call a call back from the AutoReply App.</p><p>The App will check whether the email meets any of the rules and sends auto-reply for those rules that matched.</p><p>By the way, the app doesn’t have to read the user’s email. It just makes a search query using the rule parameters and runs the query using Gmail API. Gmail supports quite <a href="https://blog.gsmart.in/mastering-gmail-search/">powerful search query syntax</a>.</p><p>It worked quite well and the app got quite a number of new user signups as time progressed.</p><p>In the mean time, Google also <a href="https://techcrunch.com/2017/10/24/gmail-gets-third-party-add-ons/">announced an API to write extensions to Gmail </a>. Unlike the chrome extensions, this was supposed to work everywhere Gmail runs (like the mobile app version of Gmail)</p><p>I created a Gmail Add-on for the AutoReply App.</p><p>However, my attempts to publish the Gmail add-on failed. The Gmail marketplace user interface has a “save changes” button that never gets enabled. It could have been either a bug in the Google UI or an intentional blocker.</p><p>Details of that episode here:</p><p><a href="https://blog.gsmart.in/cant-publish-gmail-addon/">AutoReply Add-on is Ready; but can’t publish</a></p><p><a href="https://blog.gsmart.in/gmail-addon-publishing-hurdles-2/">AutoReply Gmail Add-on Publishing Hurdles Number 2: At least one extension other than Gmail…</a></p><p><a href="https://blog.gsmart.in/gmail-addon-publishing-attempt-3/">AutoReply Gmail Add-on Publishing Attempt 3</a></p><p>I posted <a href="https://issuetracker.google.com/issues/79123714">a bug report</a> then I gave up on that.</p><p>Instead of Gmail add-on, I then created a Chrome extension (using the Inbox SDK mentioned above) and published it. It got approved and got listed in the Chrome marketplace.</p><p>Then there was a media frenzy and the whole user data privacy issue that rocked the internet. One of those days, I got an email from Google that I have to get the API tokens re-verified.</p><p>It took almost <a href="https://blog.gsmart.in/applying-for-g-suite-api-approvals/">two months and several updates</a> to the privacy policy to get through the first level of the approval process.</p><p>The final step was that I have to recruit Google appointed security assessors to verify my app, whether I am following enough security measures to protect Google’s data.</p><p>I am not storing any of “google’s “ data. However, since I need read access to Gmail, Google counts it highly vulnerable.</p><p>I had no issues allowing security assessment; but I have to pay up to 75000 USD, annually to keep running the app.</p><p>Soon, I had to <a href="https://blog.gsmart.in/autoreply-app-for-gmail-is-shutting-down/">declare that the app is shutting down</a>.</p><p>The lesson learned the hard way, is that you should never invest your time building apps that completely depends on a Mammoth company’s platform. This is especially true for Google. They will change the rules mid-game completely trashing everything that depends on it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dff3f7b91be0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google restricted API scopes will require you to spend $75K yearly security assessment fees]]></title>
            <link>https://medium.com/@prasanthmj/google-restricted-api-scopes-require-75k-yearly-fees-a23cad053a4c?source=rss-7548872330a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a23cad053a4c</guid>
            <category><![CDATA[gmail-api]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[restricted-api-scopes]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Prasanth Janardhanan]]></dc:creator>
            <pubDate>Fri, 28 Jun 2019 08:16:11 GMT</pubDate>
            <atom:updated>2019-06-28T08:16:11.773Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<p>G Suite developer program and the related Google API products at first site, might appear to open up huge frontiers for developers to create innovative add-on products. However, don’t get trapped by the size or the marketing — there are several traps waiting for you down the line.</p><p>It has become quite normal for Google to deprecate or just remove products. Along goes the associated APIs. Google Plus is the latest example. As the Product got killed, so did the Google Plus API. If you happen to develop add-ons using Apps Script, you are running a bigger risk. Entire services like <a href="https://developers.google.com/apps-script/advanced/fusion-tables">fusion table</a>, or even the popular <a href="https://developers.google.com/apps-script/advanced/url-shortener">URL Shortener</a> can get discontinued one day leaving you scrambling for alternatives.</p><p>This makes an environment where the base is decaying faster than <a href="https://en.wikipedia.org/wiki/Francium">francium</a>. Your codebase that depends on these APIs can become obsolete at any moment. When that happens, either you can kill your product or try to keep up and fix your product with alternatives spending more time and effort. A behemoth like Google doesn’t have to give a damn about either of the outcomes.</p><p>Add to this, is a brand new paradigm <a href="https://developers.googleblog.com/2018/10/elevating-user-trust-in-our-api.html">Google introduced</a> and named as <a href="https://support.google.com/cloud/answer/9110914?hl=en">“Restricted Scope” APIs</a>. For this set of APIs, the app/add on developer has to get their code certified by Google appointed security assessment agencies at a cost of up to $75000 per year. This security assessment comes only after Google’s own verification which itself takes a long time (8 to 9 weeks) and multiple follow ups. See my <a href="http://blog.gsmart.in/applying-for-g-suite-api-approvals/">experience here</a>.</p><p><strong>Solution = more bureaucracy ?</strong></p><p>In its announcement, Google says that the new steps is to elevate user trust in their API ecosystem.</p><p>Beyond Facebook’s <a href="https://en.wikipedia.org/wiki/Facebook%E2%80%93Cambridge_Analytica_data_scandal">Cambridge Analytica data privacy scandal</a>, there is heavy panic in the tech world regarding how/what user data gets shared with third parties. Articles like <a href="https://www.wsj.com/articles/techs-dirty-secret-the-app-developers-sifting-through-your-gmail-1530544442">“Tech’s ‘Dirty Secret’: The App Developers Sifting Through Your Gmail”</a> amplified that panic.</p><p>The panic left all the big companies wondering where the holes were and how to patch them without hurting themselves. One easy solution, and the one that makes lawmakers happy, is to apply a heavy bureaucracy to the mix. A bureaucratic solution (“yes, we are reviewing and policing”) would be easy to explain both to the press and to governments.</p><p>On the other hand, a technical solution would allow developers to ask for the exact scope that they would use and inform in advance to the end user the access the App has. Make those scopes as atomic as possible. This would require the APIs to be designed in a more precise manner.</p><p>Remember that in the Analytica case, they were able to access more than they were allowed to.</p><p>Is a bureaucratic solution sustainable? Let’s imagine every API provider who follows the suite starts demanding a kind of “certification” from a third party. Then, every year, you’ll have to keep renewing each of these “certifications”. Imagine this in a rapidly moving tech space.</p><p>I have read that in Post-independence India, until around 1991, in order to start an industry producing anything, you had to <a href="https://en.wikipedia.org/wiki/Licence_Raj">get up to 80 or so licenses</a> from various government departments. One had to struggle through a maze of bureaucracy before they could start making anything. How did such a system come into being? The lawmakers at that time feared that the country would fall again to its status as a colony if it didn’t make its socialist bureaucratic red tape so tight that it couldn’t move.</p><p>Let’s hope that these developments don’t lead to a utopia wherein every new product requires “certification” before even getting its first user.</p><p>Meanwhile, if you are planning to develop using the Google APIs, keep these points in mind. It might save you from misplaced efforts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a23cad053a4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Easy Formula to Quickly Find Duplicates in a Google Sheet]]></title>
            <link>https://medium.com/@prasanthmj/find-duplicates-in-a-google-sheet-313e9bea5067?source=rss-7548872330a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/313e9bea5067</guid>
            <category><![CDATA[google-sheets]]></category>
            <category><![CDATA[duplicate]]></category>
            <category><![CDATA[find-duplicates]]></category>
            <dc:creator><![CDATA[Prasanth Janardhanan]]></dc:creator>
            <pubDate>Wed, 17 Apr 2019 06:36:34 GMT</pubDate>
            <atom:updated>2019-04-17T08:06:25.227Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<p>It seemed obvious, there should be an easy way to detect duplicates rows in a Google Sheet. However, it isn’t that easy it seems. I went to google for a search. Most of the “solutions” popped up in Google search suggested solutions such as using the UNIQUE() function to detect duplicates. It appeared there is no better solution</p><p>After some search and experimentation, here is a better alternative. We can detect duplicates just by using the <a href="https://support.google.com/docs/answer/3093378?hl=en">MATCH() function</a>. You see, the MATCH() function searches a column and tells you the row where it found a match -perfect function to find the row of the duplicate!</p><p>When you want to search for duplicates, all it has to do is to search the current cell in all rows before it. Like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*JmbRkPGczSb0gOzPROMgCw.png" /></figure><blockquote>MATCH(search_key, range, [search_type])</blockquote><p>search_key is the value of the current cell and range is the range where to search for</p><p>search_type 1 means the range is sorted and search_type 0 means the range is NOT sorted.</p><p>The MATCH() function returns the row number where the match is found.</p><p>So if we just do</p><blockquote>=MATCH( C12, C$2:C11, 0)</blockquote><p>The formula will tell us whether the cell C12 has a duplicate (and if there is a duplicate, which row it is)</p><p>We can apply this formula to one cell and just copy to the rest of the cells. Google Sheets will automatically translate the row numbers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*Jv2r4Mf4zgiXLG7EgRXscA.png" /></figure><p>Notice that the duplicate row number is shown for the rows that have the duplicate value. It is not exactly row number since we started the search from the second row. Adding 1 gives the correct row number ( 13+ 1 = 14 has the duplicate value).</p><p>However, #N/A looks ugly for the unique rows.</p><p>A little bit of a hack will get us a better solution. Here is the formula:</p><blockquote>=SUMIF(MATCH(C3,C$2:C2,0)+1,“&lt;&gt;#N/A”)</blockquote><p>Instead of #N/A now we will have 0 and for the duplicate rows, the row number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v46rqsk9yaQRcmsOj5IKPA.png" /></figure><p><strong>Sample Sheet</strong></p><p><a href="https://docs.google.com/spreadsheets/d/1NjK4XmTmQ-3Gw7U4eJJXHfqKTOTG2GHmvtbm9jNxCzk/edit?usp=sharing">Here is the sample sheet</a>. Make a copy and try experimenting!</p><h3>Related Articles</h3><p><a href="http://blog.gsmart.in/google-sheets-highlight-duplicates/">In Google Sheets, how to highlight duplicates using a simple formula</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=313e9bea5067" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google Sheets Query Pivot Example]]></title>
            <link>https://medium.com/@prasanthmj/google-sheets-query-pivot-example-76229437946f?source=rss-7548872330a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/76229437946f</guid>
            <category><![CDATA[google-sheets]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[pivot]]></category>
            <category><![CDATA[query]]></category>
            <dc:creator><![CDATA[Prasanth Janardhanan]]></dc:creator>
            <pubDate>Wed, 17 Apr 2019 05:45:04 GMT</pubDate>
            <atom:updated>2019-04-17T08:07:44.892Z</atom:updated>
            <content:encoded><![CDATA[<p>Google Sheet QUERY() function is quite useful when you want to make reports. Although not quite the same as SQL Query, the query features are very powerful when you start to use it.</p><p>This tutorial assumes that you have a little bit of understanding about the Google Sheets QUERY() function and how to use it.</p><p>The PIVOT clause of QUERY() function is a little tricky and might get some time to get your head around it.</p><p>PIVOT is useful when you have multiple dimensions for the data in hand.</p><p>Let us take this sales data for example. We have three products: A,B and C. We have a sales report with the sales of each product units by states.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*c27D3xGA2xfZF_OTs-Q9FQ.png" /></figure><p>I want to get the total number of units sold, by state. Here is the formula to do that:</p><blockquote>QUERY(A3:D19, ”SELECT C, SUM(D) GROUP BY C <strong>PIVOT B</strong>”)</blockquote><p>The query means</p><blockquote>SELECT state,SUM(units sold) GROUP BY state PIVOT by product</blockquote><p>Here is the result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*e7GKVAqX8jbfhJqwizu5ww.png" /></figure><p>The PIVOT clause causes the product names to become column titles. Then the SUM() and GROUP BY computes the totals</p><p>We had 4 dimensions to the data when we started: quarter, state, product and units sold. Using the aggregate functions and the pivot we moved the data to 3 dimensions: state, product and units sold</p><p>You can get this example sheet here:</p><p><a href="https://docs.google.com/spreadsheets/d/1fWhWcfnKiebRMQ2F5GWvsJZGQ-7c_gWfaku8vCC26F4/edit?usp=sharing">Sample Sheet</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76229437946f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solution for “CANNOT_GROUP_WITHOUT_AGG” in Google Sheets]]></title>
            <link>https://medium.com/@prasanthmj/solution-for-cannot-group-without-agg-in-google-sheets-b353e9a60b70?source=rss-7548872330a2------2</link>
            <guid isPermaLink="false">https://medium.com/p/b353e9a60b70</guid>
            <category><![CDATA[google-sheets-query]]></category>
            <category><![CDATA[google-sheets]]></category>
            <dc:creator><![CDATA[Prasanth Janardhanan]]></dc:creator>
            <pubDate>Thu, 21 Mar 2019 11:29:12 GMT</pubDate>
            <atom:updated>2019-03-21T11:29:12.391Z</atom:updated>
            <content:encoded><![CDATA[<p>Let me guess: you got this error when you where trying to pick some distinct value from a Google Sheets QUERY()</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*bxHuRbeWLKgI4FIXD1F1yA.png" /></figure><p>The error means that you are using GROUP BY in the query but there is no aggregate function (like COUNT(), MAX(), MIN(), AVG()) in the SELECT part of the query.</p><h3>Solution</h3><p>All that you have to do is to add an aggregate function in the Select part of the query.</p><p>Here is the sample Sheet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*7D1-xEMuPavIJ2p-aDdwPA.png" /></figure><p>If I do a query like this:</p><blockquote>QUERY($A$2:$B$7,”SELECT A WHERE B = ‘San Bernardino’ Group BY A”)</blockquote><p>It will throw the error because there is no aggregate function . Google sheet query does not have a DISTINCT clause either.</p><p>However, if you change the query slightly:</p><blockquote>QUERY($A$2:$B$7,”SELECT A, <strong>COUNT(A)</strong> WHERE B = ‘San Bernardino’ Group BY A LABEL COUNT(A) ‘’ “)</blockquote><p>It should work fine. Notice that we added a COUNT(A) function to the SELECT clause. Also we use the LABEL clause to make the heading blank.</p><p>Try this in the sample sheet below:</p><p><a href="https://docs.google.com/spreadsheets/d/1GcfSrnGIgwzTOpUUZz9FCB5x6Z2xo1qR_cDC5aussrk/edit?usp=sharing">Sample sheet</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b353e9a60b70" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>