I am looking for help with this sheet. I have some item names and images next to those. They belong together.
Whenever I tick the first checkbox in the item sheet, I want the item name and the image to be displayed in Sheet 2. I have managed to do that with the formula in A1 for the image
=Iferror(VLOOKUP(B1,Items!B4:F15,2,FALSE),"")
and for the item name formula in B1 I used
=iferror(QUERY(Items!B4:F15,"select B where D=True"),"") .
My problem is:
When I tick the first checkbox of any item, the item gets normally displayed in Sheet2 with the belonging image. When I tick the second checkbox for that same item (x2), I want the same item to be displayed right again in the second row in Sheet2 with the belonging image again. If I tick the third checkbox, I want it to be displayed three times basically below each other with the belonging image.
Is that possible without scripts?
https://docs.google.com/spreadsheets/d/1tjyBIMDWbM4AxuQby4vmEUeFgqLbxN1EPk1pGqEX_64/edit?usp=sharing
You can try
=sort(filter({
ifna(filter(Items!B4:C,Items!D4:D),{"",""});
ifna(filter(Items!B4:C,Items!E4:E),{"",""});
ifna(filter(Items!B4:C,Items!F4:F),{"",""})},query({
ifna(filter(Items!B4:C,Items!D4:D),{"",""});
ifna(filter(Items!B4:C,Items!E4:E),{"",""});
ifna(filter(Items!B4:C,Items!F4:F),{"",""})},"select Col1")<>""))
UPDATE: Better approach
=sortn({
ifna(filter(Items!A4:B,Items!D4:D),if({1,1},char(999)));
ifna(filter(Items!A4:B,Items!E4:E),if({1,1},char(999)));
ifna(filter(Items!A4:B,Items!F4:F),if({1,1},char(999)))},
countif(Items!D4:F,true),,2,1)
Essentially we are filtering the data three times (one for each checkbox), stacking all the results together and sorting them in ascending order. The if({1,1},char(999)) is used as padding in case there's no match (i.e. no checkbox is ticked) to prevent ARRAY_LITERAL. The idea with char(999) is to have a character that goes to the bottom of the list when the range is sorted so we can exclude it with sortn(). I don't know how Google Sheets sorts when special characters are involved (if anyone does please let me know) but char(999) seems to get the job done.
Related
How do you add up values in different cells?
I'm looking to create something similar to: https://i.etsystatic.com/7867478/r/il/09bb36/3897355233/il_1588xN.3897355233_koef.jpg
You will notice in the "expenses summary" box there are different descriptions such as food.
In the lower right corner, there are dropdown boxes for the category. There are multiple categories selected with varying amounts next to it.
Back to the "expenses summary" box there is a column named "actual" which adds up the values in the expenses tracker box.
In this case, this is $55 + $200 + $50 for food albeit in different boxes.
How does one add add these values up in a sheet where the category variable can be changed at anytime?
I have used vlookup to no avail. Fixing the cells would not work due to the variability of it.
There's no way of automatically modifying everything since it's notanother type of databases. The easiest way in my opinion is go to Edit - Find and Replace and Replace All those values. If the Data Validation is linked to a range, then it will be updated too
I have been googling multiple hours now and still cannot find a solution for a Google Sheets problem.
I have two images, the first image is in the cell A1 and the cellname is called "Image1". The second image is in B1 and the cellname is called "Image2". I have two columns of set names, all names in column1 are related to Image1, all names in column2 are related to Image2.
Column1: K1:K4
Column2: L1:L4
I want the name-related images to be displayed next to the names I write down in another column according to if its a name from column1 (Image1 should be displayed next to it) or a name from column2 (Image2 should be displayed next to it).
D4 = First cell where I start writing down names from column1
G4 = First cell where I start writing down names from coulmn2
If I only write down names from column1 I have no problem to display Image1 next to it. Same with names from column2.
I am using those formulas:
=IF(COUNTIF($K$1:$K$4,D4),Image1,"")
=IF(COUNTIF($L$1:$L$4,G4),Image2,"")
The images are displayed correctly to the related names.
Now, if I write and mix down names from both columns I don't know how to automatically display the correct image related to the name in the cell.
Is it possible to combine =IF(COUNTIF)) multiple times?
GoogleSheetsSample
Yes, you can use them together like this in cell J12 on your test sheet:
=IF(COUNTIF($K$1:$K$4,I12),Image1,IF(COUNTIF($L$1:$L$4,I12),Image2,""))
An arrayformula will save you the trouble of dragging down the formula. Add this to cell J12 and delete all content in J13:J1000:
=arrayformula(IF(COUNTIF(K:K,I12:I),Image1,IF(COUNTIF(L:L,I12:I),Image2,"")))
For the arrayformula to work, the criterion for each countif needs to be from the cell where the formula is located (eg, J12 in this example), to wherever you want the criterion to keep working to. I've deliberately left it to :J so it works to the bottom of the sheet.
The countif ranges don't need to be fixed and they can be the entire columns if you wish K:K and L:L. Or you could set a range if you don't want the countif to go past a certain row (eg. K1:K9 and L1:L9).
Can you please help me to understand how to build a diagram (smooth line) that is basing on RED values (BLUE category) per GREEN month?
Table in google sheets
I have no idea by this time how to do it - I think diagrams cannot understand multiple values if I just select them separately.
I tried to select individual cells that I need to build diagram for, but it does not work, since it cannot understand that I need to bind the selected cells with months and category names..
The way of doing this would be:
Select the first cell of the series
Insert chart
Select type: smooth line chart
Click on Select data range (button on the right of the Data range input)
Click Add another range and add the other cells one by one, and then click OK
Set Combine ranges to Vertically
And the graph should appear
My question is simple, but I am afraid that there is no solution for this.
I want to create 3 combo boxes in 3 lines in a column.
The combo boxes have only 3 values.
If I select an item from the combo box, then the other two combo boxes should have only the remaining 2 items to select.
If I select an item from a second combo box, then the last one should have only the remaining 1 item to select.
If I clear the first combo box selection, then the first and last combo boxes should have only the remaining 2 items to select again.
Is this possible somehow in Google Sheets?
There definitely is a solution for this, you're just going to need some separate formulas.
Reserve 9-12 cells (depending if you want headers) and label them so that you know which dropdown they refer to (i.e. box 1, box 2, box 3).
Under Box 1, simply list your 3 values.
Under Box 2, enter the formula =filter(C2:C4, A1<>C2:C4) replacing C2:C4 with the range of Box 1's three values, and A1 with the cell of the first dropdown box.
Under Box 3, enter the formula =filter(D2:D4, A2<>D2:D4), replacing D2:D4 with the range of Box 2's three values, and A2 with the cell of the second dropdown box.
Now, just insert dropboxes and set the list range to the three ranges from above. The formulas will cause the cell values to change, and in turn change the dropbox values.
And that's it! If you would want them to all be independent, as it seems the last part of your question asks for,(ex. choosing a value in Box 2 first and then Box 1 and 3 changing accordingly) it would just require some longer formulas. I can work on that, but i wanted to get this to you first to be sure this is what you were asking for.
Spreadsheet: https://docs.google.com/spreadsheets/d/15YLW7qL685FJjXKPE0uWTM50YhygpOZqK0UW4u48atI/edit?usp=sharing
I've googled this issue and have found plenty of information on how to "split text into different columns", but I want to copy+paste the text into just one column on the google sheet.
Herewith is a picture that shows what I'm getting (on the left), and what I actually need (on the right). I've tried CTRL+SHIFT+V but it doesn't work either. I did it in the past, but can't remember how.
Its a two part process.
1) Find the last column
Start with the cursor in the first column, press CTRL+Down. The cursor should jump to the next cell in the column. Press CTRL+Up, to move back to the top row. Move the cursor one column to the right and repeat.
It won't take long and you'll find that the cursor goes right to the bottom of the sheet; which means that there's no data in that column, and the Previous column is the last column.
2) Concatenate each row
Go to the first row of data, and create a Concatenate formula. Include every column from the first column (B) to the last column, regardless of whether you think there is data in those columns on this row.
Then copy the formula down to the very last row of data.
Then highlight the range, and Copy/Paste Values.
Depending on which are your first and last columns, your formula might look like this.
=CONCATENATE(C1,D1,E1,F1,G1,H1,I1,J1,K1,L1,M1)