r/googlesheets

Sheets is insisting that 6 = 1-5

Sheets is insisting that 6 = 1-5

Title says it all. Why is it insisting this is the case? How do I tell it to stop?

u/Six_factorial — 4 days ago

Populate a cell with a date range if any cell in a range on another sheet equals the number of its row

Hey all! Just working on a little recreational thing.

I want column C of the "Goals" sheet's cells to populate with a date range of [Monday after next] to [Tuesday of the week after that] if its row number appears in C20:I26 of the "Card" sheet.

How can I make that work?

https://docs.google.com/spreadsheets/d/1oBQxlmUUlfn9Fl4HLgTXCFdBxQ37R9yK-_S6N-51CZo/edit?usp=sharing

u/Baxder — 4 days ago

Is there a way to highlight the rows with check if i click on the header?

Is there a way to highlight the rows with check/true if i click on the header? For example if i click on the header "Five Spice" it would highlight the rows of the Cinnamon, Clove, Fennel, Sechuan, and Star Anise.

u/sinigang_rice — 6 days ago

How do you add a cell in one specific column only?

https://preview.redd.it/anjavj913ouh1.png?width=863&format=png&auto=webp&s=3b6d29a40f4bfb6ada52ca426d90cb191bdd1843

I've been working on a livedex for a browser-based pokemon game I've been playing, and they've recently added a new paradox form for ambipom. How do I add a cell specifically for one column without fucking up the nearby ones? I've had to add cells before after forgetting a pokemon from my list and it created a lot of awkward spacing for the entire doc that I had to adjust. It was extremely annoying... I don't wanna do that again LOL

Thank you!

reddit.com
u/chaddamaus — 5 days ago

IF(SEARCH(B11,"A"),S8) but make it multiple options for B11 each with corresponding values

I'm attempting a formula and it's not going well, and I don't know how else to word it when searching so I come to Reddit. I need something along the lines of

D11: If B11="A" then show S8 value, if B11="B" then show S9, If B11="C" then show S10...etc

There are six options in Cell B11 as a drop down, options are A, B, C...F. S8:S13 are all simple formulas themselves (=number*cell value). I also need this in in the cell above but with B10 as the drop down and R8:R13 as the returned values.

I know it should work, it worked with =IF(SEARCH(B11,"A"),S8) but I can't get it to be multiple choices. I tried OR and IFS but I'm lost and have been trying for well over an hour. I'm also not the most experienced with Google sheets I've just made spreadsheets for budgeting, meal prep and travel planning.

Sorry for any confusion but any help would be much appreciated!

reddit.com
u/Sarah_May129 — 6 days ago

Looking for a way to use a bar code scanner app to affect inventory stock automatically

Reposting because I accidentally deleted the original post out of sheer stupidity.

I'm trying to use google sheets as a cloud based inventory for stock we keep at work. I have an app on my phone that can be used to scan barcodes and automatically log data into a google sheets with varying data that I would like to link to our online inventory.

here's a link to a test inventory I've been playing with.

on the first sheet you can see a very crude version of an inventory with basic garments and stock levels, on the second sheet you can see an example of the data that can be logged by the app as you scan a barcode.

I'm basically trying to link the first sheet so that when a barcode gets populated into the second sheet with the quantities, it automatically subtracts the items from the main inventory.

don't know if that's possible with just formulas or if I need to figure something out with Javascript.

u/the0utc4st — 6 days ago

How do I follow a sequence in Google Sheets?

https://preview.redd.it/jqy81jv54kuh1.png?width=678&format=png&auto=webp&s=48dc84d1a903bcf2125eb0888fb5c328bc36f713

This is purely an example, I have no code and have been doing things entirely manually. What I would like to do is follow a certain sequence by inputting a text and the next cell automatically guessing what comes next. I attempted with IFS in another sheet while referencing the original one so I could still input text in the ones being modified (if that even makes sense) and it didn't work,,, I only know the basic of the basic, so any help would be immensely appreciated. (sequence is w/g/m > x > w/g/m > x > w/g/m > x > house)

reddit.com
u/mushphyllum — 5 days ago

Unable to open my sheet on mobile app

Does anyone have a solution to this problem on mobile app?

u/master2426 — 6 days ago

Is there a way to extract a column of links (not hyperlink) and paste it somewhere else?

I have an excel sheet with a column of links that I want to copy and then paste onto Google Docs. Is there a way for me to do that?

reddit.com
u/popalarka — 5 days ago

How do i link cells together?

I have my sheet set up so my data in A1 and B1 are together, A2 and B2 together, C1 and D1 together, and C2 and D2 together Etc... I want to have my data in column A to be in numeral order automatically but the data in column B does not move with it.

u/Flashy-Text2482 — 6 days ago

My 2nd TOCOL isnt behaving the way i expect.

Good morning! EDIT: MY 3rd TOCOL is the problem.

So, i have a grid that has slots that may or may not be filled with names.

I'm performing TOCOL on this list to put them all in a column (list) with no gaps, which it is.

However, in another spot on the sheet I turned all of those names into values based on where they are. so in that copy. each cell looks something like =if(D5<>"", "2", "")

So when I run a TOCOL on the copy. it doesnt remove the "blanks" because there is a formula in those cells.

Okay, no big deal. I figure. if I run a 3rd TOCOL on the 2nd TOCOL that didnt remove the "blanks". It would remove the actual blanks present in the 2nd TOCOL. but to my surprise it isnt.

For reference.

1st TOCOL, which works is =TOCOL(C1:E28, 1), gives me all the names in a list
2nd TOCOL, which doesnt "work" is =TOCOL(C50:E77, 1), it gives me all the cells because each cell contains that value formula.
the 3rd TOCOL looks like =TOCOL(P2:P84, 1), which is just supposed to perform TOCOL on the 2nd TOCOL.

reddit.com
u/Beneficial_Treat5454 — 6 days ago
▲ 4 r/googlesheets+1 crossposts

attendance/ sick days counter

Hi!

I want to create a sheet that will allow me to track the percentage of my sick days (i can't be over a certain number so it's important for me to know how many days i have left) from the total days, so e.g. when i have 10 days of work and miss one it would be 10 percent. what i don't get is:

\- how do i add a button that will automatically add 1 to the number of sick days so i can just click it when i do have a sick day

\- is there a formula that automatically adds 1 to the number of total days when it's a weekday, so from mon-fri e.g. when it's been 20 days of school so far, every day it will add 1, so 21 on monday, 22 on tuesday and so on. that will allow me to keep track of the relative percentage (as i believe it's called? idk, i'm not a maths expert lmao) rather than just the absolute percentage of the whole academic year.

I'm completely new to sheets but i've been playing around for a few hours, so far no luck.

if anybody has any tipps, formulas or websites with good formulas (so far i've only been able to find pages like "30 basic formulas everyone whould know", no extended list or anything. i've looked here in the subreddit for similar requests or even parts of it but haven't been successfull so far.

thank you in advance!

side note: i'm aware that AI could give me an answer in like 2 secs, but i'm opposed to using it out of environmental and moral concerns.

reddit.com
u/Character-Set1444 — 10 days ago
▲ 8 r/googlesheets+1 crossposts

Center Align all cells for all sheets as a trigger.

Hi all,

I have a trigger running to center the cells of our spreadsheets, however it only centers the first sheet and not all. Is there a way to center all of the sheets instead of just the first one?

See what I have below. Thank you for the help!

function centerAllText() {
  var sheet = SpreadsheetApp.getActiveSheet();
  var range = sheet.getDataRange(); // Gets the range containing data
  range.setHorizontalAlignment("center");
  range.setVerticalAlignment("middle"); 
}function centerAllText() {
  var sheet = SpreadsheetApp.getActiveSheet();
  var range = sheet.getDataRange(); // Gets the range containing data
  range.setHorizontalAlignment("center");
  range.setVerticalAlignment("middle"); 
}
reddit.com
u/khkarma — 12 days ago
▲ 3 r/googlesheets+1 crossposts

Syntax problem for IF formula

Hey all. I am brand new to this and teaching myself. I want to preset a column to see if a set of other cells have a number in them. If not, I want it to act as if they are zero. If they do have any numbers, I want it to round the average of the numbers. So far the formula I’ve come up with is

=IF(ISBLANK(D4:M4),"0", ROUND(AVERAGE(D4:M4),0)

I know this isn’t right and doesn’t work. I just don’t know what I’m messing up. Any and all advice would be greatly appreciated!

Edit: I think u/whonose2238 fixed it! Thank you all for your help!!!

“There is a second issue: ISBLANK(D4:M4) is checking a range, which can produce an array of TRUE/FALSE values rather than simply asking whether the whole range is blank.

If what you mean is “if all cells D4:M4 are blank, return 0; otherwise average the populated cells and round to a whole number”, I'd use:

=IF(COUNTA(D4:M4)=0, 0, ROUND(AVERAGE(D4:M4),0)) “

reddit.com
u/theendisnigh91 — 12 days ago

How to make checkboxes auto-uncheck daily on two different tabs on the same sheet, with different ranges for the different tabs (script help?)

Hi! I was able to get this script to work for one of the tabs in my work's google sheets, but I cannot figure out how to get it to be able to auto-trigger and uncheck checkboxes on two different specific tabs, with two different specific ranges.

function timedresetboxes() {


var spreadsheet = SpreadsheetApp.getActive();


spreadsheet.getRange('B6:B29').uncheck();


}

Currently, I am using this^ through the Google Apps Script and it runs and correctly unchecks the boxes on the tab I need.

However, I guess it does not specify the tab name in the sheet I am using it for. I am not versed at all in coding, and found the above script to use from a different reddit thread.

I need to uncheck boxes at midnight daily on the following tabs with the following ranges:

tab name: アマ
range: B6:B29

tab name: DAILY TASK 🌴
ranges: F5:F20 and K5:K:20

I trust reddit people to know what to do, it is probably an easy fix for someone who knows what they are doing! Thank you!

reddit.com
u/Dazzling-Pension-409 — 14 days ago

Equation doesn't return correct answer

I'm trying to host a little field day type thing with a bunch of my mates. I have two scoring systems listed under "Law of scores" (top left). The first is for non mandatory events which is working fine. The second is working less fine. It returns the wrong value regardless of whether I type it out as a numbered equation or as commands. What is the correct function to make this work?

u/dzrch — 14 days ago

Date drop-down in Table

I can insert a drop-down calendar in a cell via Data Validation and it works. Now I have a sheet that is table formatted, when I try Data Validation the only option that is available is for Drop-down text. How do I insert a drop down calendar in a Table formatted Google Sheet? Thanks for your help.

reddit.com
u/torvenkat — 14 days ago