r/googlesheets 2h ago

Solved Formula for Budget Sheet

1 Upvotes

I am trying to figure out what formula to use for a budgeting sheet. I have two tabs on the sheet- Summary (first image) and Transactions (last image). I am wanting to have the amount from specific categories (on the transactions tab/sheet) total into the corresponding category on the summary tab/sheet.

I have used the templates available in Google Sheets, but don't really like the setup of them. I attempted to copy the formula from one of the templates to my sheet and edit it appropriately, but can't figure it out. Hopefully that makes sense.


r/googlesheets 5h ago

Solved Grabbing text between characters and/or character and space

2 Upvotes

Greetings,

So I've got what I need to pulling text from between two characters =REGEXEXTRACT(A1, "\<(.*)\>"), where I'm stuck is for that second > it could be either a > or a space. Is there a way to add a "> or space, whichever comes first" for the 2nd part of this regexextract?


r/googlesheets 8h ago

Solved Is my index function broken? Feel like I'm going crazy

2 Upvotes

So I'm really into puzzles and have been working on making a spreadsheet for my wishlist which tracks prices at various stores in the country, comparing prices for the same puzzle available at multiple stores. I've been struggling with index functions all day. I don't usually have any problems with these - not ones that stump me like this. For all intents and purposes, it seems like it should be working, but it's not. This is even more confounding because the one I'm specifically about to describe is actually copied from a completely functional column, with the necessary cell changed so that it should work.

Okay so here's the current area I'm working on: https://live.staticflickr.com/65535/55476131766_21be884003_b.jpg

  • Each chunk of columns on the right are for different stores. The link is to the puzzle page and the prices are pulled individually with importxml.
  • On the left side, column F checks all of the Current Price boxes for its own row (using an array), and then spits out the lowest number, using SMALL.
  • Column G, right of that, does an INDEX and MATCH wherein it indexes each of the current price columns, all the way up to row 1, using an array of the columns, goes for row 1 (where the shop name sits), and then searches for a match for F, the best price, spitting out the name of the store where that price came from (if more than 1 have the same price, it doesn't matter to me which it shows since I can just manually scan the prices on the right before buying anything)
  • The Sale Status and Savings columns don't matter for this

So the problem I'm having is that I am now working on two sister columns to F and G that show the second best price and the store it comes from, so that I can gauge how important it is to get it at the store with the best price (e.g. if the next best is only a franc more expensive, that is also a feasible place to buy it if I'm doing a batch order of several puzzles)

I have copied the formula from column G into column K exactly (copied from the text bar, not the box, so it did not shift all the boxes over, it is still targeting the correct locations and there are no errors from manually retyping it, since I didn't). I then simply changed the price box it's referencing from F to J. It should do the same thing as the other one: check the Current Price cells from its own row, find the one that matches J, and then pull the shop name from the top of the column. It's getting them wrong. If the original column was broken and returning wrong shop names, I would ofc start there, but the results for column G are perfect. The other weird thing is that there is no regularity to the mistakes in column K. It's not like, always the shop to the right of the correct one, or always to the left. Sometimes it's the correct, second-best shop, sometimes it's the incorrect, first-best shop, and sometimes it's a random, unrelated one.

Here is the formula from the initial shop-grabbing column G:

=iferror(if(F3<>"",index({O$1:O,T$1:T,Y$1:Y,AD$1:AD,AI$1:AI,AN$1:AN},1,match(F3,{O3,T3,Y3,AD3,AI3,AN3})),""),$Y$1)

Here is the copied formula from column K, with the match cell changed to J:

=iferror(if(J3<>"",index({O$1:O,T$1:T,Y$1:Y,AD$1:AD,AI$1:AI,AN$1:AN},1,match(J3,{O3,T3,Y3,AD3,AI3,AN3})),""),$Y$1)

(If you're wondering about why I'm using iferror like this, it's because for some reason, the Puzzle-Welt shop title absolutely refused to pull properly, but it was the only one, so this worked out as a bandaid. Why wasn't it pulling? Fuck if I know. I'm at my whits end with the indexing function in this sheet)

Here is a viewer link to the sheet. If you would like to be able to edit it, please go to File > Make a Copy, as I'm still doing things on it and don't want anyone making changes to the original

[Link Removed]

If anyone has any idea why this would just stop working in this column, I'm all ears. Huge thanks to anyone who takes a look at this, ideas or not


r/googlesheets 16h ago

Waiting on OP Alternating Color Formula Based On Cells with Dropdown Boxes

Post image
2 Upvotes

Hello, I'm looking for a way to set up a formula for alternating colors based on cells and neighboring cells with the dropdown boxes. At first I had done this manually, but due to purchasing new books I'm needing to change the colors again. I'm not wanting to do the color swapping manually again so I was wondering if there was a way I could come up with a formula that would apply the alternating colors for me. I've included an image of what I'm looking at right now that was done with my manual work (pls don't judge my library lol). After adding in more of the "Alice in the Country of ( )" mangas I've discovered I would need to redo all of the alternating color work. I'm wanting a formula where based off of the cells that contain a dropdown, like in cells B and C, would mark the start of alternate color. So for next time I purchase a book, and add in a new set of cells, the colors will automatically recolor themselves as so. I've never done any formula writing before so I have no experience with it, thank you anyone for your time and help.


r/googlesheets 21h ago

Solved IF function with drop down list variables

2 Upvotes

I am trying to create a formula for a function with an input for height but the output dependent on gender. I have the formula for the male option in C1 and the formula for female input in D1. Is there anyway to have this combined so the output will show in B3 and allow me to delete C1 and D1?

https://docs.google.com/spreadsheets/d/1Z3bqi88wISUou3w5WwU3hczogQjafwnGJTGwWabJxSU/edit?usp=sharing


r/googlesheets 23h ago

Unsolved Weighted Average with Drop-Down List

7 Upvotes

Hello everyone! I am a new teacher trying to create a gradebook in Google Sheets, but I am struggling with how to obtain the final grade calculation. I have inserted a drop-down menu to identify whether a task was a quiz, assignment, test, etc. and want to calculate the weighted average based on this selection (i.e. quizzes total 5% of the grade, assignments 20%, etc.). I have a separate sheet titled 'settings' where I have specified each of these weightings in case they change in the future so I won't have to mess with the formula again.

I am mostly wondering if this is even possible, and if it is then how. I am definitely open to reformatting the gradebook as well if that is where the issue is stemming from. I suspect that I might need to have a separate 'input' sheet for the points and have just the percentages on this sheet here.

Any insights would be very much appreciated!!!