|
When you sort, make sure you choose the option 'Sort numbers and numbers stored as text separately'. Alternately, as long as your ids are always 3 and 6 digits you could just use new sorting column with: =LEFT(A1,3)&LEFT(B1,6)
|
# ¿ Sep 25, 2014 00:33 |
|
|
# ¿ May 3, 2024 15:39 |
|
It's called a map. I don't think there is a function for it, but the math is simple enough.code:
|
# ¿ Feb 9, 2015 22:29 |
|
Pivot tables can be a bit wonky if you try to do too much inside them; I'd add a second table (a regular table) just to the right, have it do the math using table headers, then hide col C-H.
|
# ¿ Feb 13, 2015 01:01 |
|
Like this?
|
# ¿ Mar 2, 2015 03:58 |
|
Just have column that subtracts the in time from the out time and format the cell to display only hours. Edit: Ctrl+; and Ctrl+Shift+; with a space in between will auto add the current day+time as a fixed value, which should save time if you are having people manually type in the time when they have an order updated. For formatting it would be under custom, [h]:mm. That would report in total hours with minutes. If you want fractional hours you'll have to do math using the hour and minutes functions, something like: code:
TheLastManStanding fucked around with this message at 21:49 on Mar 25, 2015 |
# ¿ Mar 25, 2015 21:32 |
|
It's not part of the table. If you click something in the table there should be an outline of the whole table which you should be able to adjust. Otherwise just select all your data and table it again. Once it is part of the same table you can toggle the drop down menus on and off by clicking the filter button in the data tab.
|
# ¿ May 8, 2015 05:33 |
|
Concatenate the two into a third column and check that for dupes.
|
# ¿ Mar 22, 2016 01:28 |
|
I haven't used google sheets in depth enough to know if that function exists, but if all else fails you could calculate the quadratic regression yourself, setting aside a few cells hold the coefficients. http://keisan.casio.com/exec/system/14059932254941
|
# ¿ Mar 23, 2016 05:42 |
|
Copy value from every nth column
|
# ¿ May 28, 2019 07:55 |
|
nickhimself posted:Here's the first screen. The '10361' is the customer number, the values highlighted below are all costs associated with this customers statement for the month.
|
# ¿ Jun 7, 2019 22:30 |
|
Create a column that you can hide later and put in:code:
code:
|
# ¿ Jun 28, 2019 03:40 |
|
LawfulWaffle posted:1) Can a table be formatted so when a new row is added, some cells are already populated? 2) When making your query: Transform>Format>Uppercase.
|
# ¿ Apr 3, 2020 03:38 |
|
tuyop posted:Hey Excel thread. I'm not sure which function I need to use for this thing, and I know one of my students is definitely going to ask tomorrow. Easiest way would be to add another column: F3=MAX(B3:E3) Then your result cell would be: =INDEX(A3:A7,MATCH(MAX(F3:F7),F3:F7,0)) There are ways to this without the extra column, but they involve array formulas.
|
# ¿ Apr 26, 2020 22:32 |
|
Sad Panda posted:I'm trying to play around with my Excel markbook and decide based on 3 values which of 6 categories that leads to. The brute for way seems to be an exceedingly long IF statement. Any other advice would be appreciated. That's not that many cases. Just concatenate the inputs, build a lookup table, and use IFNA() to handle the default case.
|
# ¿ Jun 19, 2020 06:07 |
|
Sad Panda posted:With 3 values and 6 possible options each isn't that 6^3 (216) different things to have in my lookup table? I guess I can drop it so anything that leads to a U becomes the default value, so then it's 5^3 (125) instead, but that seems rather large. I played around in excel for a bit and came up with the formula below. It assumes input values 1 to 6 (1 being U and 6 being L2D). It seems to work, but you'll probably want to check it against your table. code:
|
# ¿ Jun 22, 2020 07:36 |
|
Sad Panda posted:One thing that jumped out, I'm not sure what *1 does? When does x *1 not = x? One important thing to note; based on what you had wrote ("A1 + A2 are both L2P+ and A3 is L2D" ), I took that to mean that A3 is treated differently. So for example: 2, 2, 4 = 3 whereas 4, 2, 2 = 2 If that's not the case and order isn't dependent, then it simplifies to code:
I also realized the original code can be simplified code:
TheLastManStanding fucked around with this message at 20:50 on Jun 22, 2020 |
# ¿ Jun 22, 2020 20:05 |
|
tuyop posted:I think the thing that breaks my brain about it is the MOD just in the middle there. Doing important but mysterious work. And yet, it goes away when we just skip to multiplying by whether or not the result is even. Which is not only possible but matters somehow.
|
# ¿ Jun 24, 2020 05:06 |
|
If you don't mind programming, then look into editing files through the component object model. You could write a script that could take an excel file, pull out the user inputted cells, insert them into your blank template, then save it out as a validated file. For tasks like this I prefer AutoHotkey, but it could be done in any language .
|
# ¿ Jul 3, 2020 02:34 |
|
Secx posted:Is there another syntax I can use to avoid hard coding the rows? My columns will always be the same when I paste my data. It's the number of rows that I can't control. code:
code:
|
# ¿ Nov 10, 2020 05:53 |
|
Sad Panda posted:
code:
code:
TheLastManStanding fucked around with this message at 03:14 on Jan 3, 2021 |
# ¿ Jan 3, 2021 00:44 |
|
Sad Panda posted:I tried that and it returns #VALUE! If it isn't liking ROW(MainTable), then MainTable probably isn't actually the name of your table. Also, it will only work inside the table itself. The index needs the row number of the table, so we're taking the current row number of the sheet and subtracting the row number of the first row of the table, then adding 1. Doing it the way you suggested would give an increasingly negative number. You could alternately write it as ROW() - ROW(MainTable[#Headers]).
|
# ¿ Jan 3, 2021 20:23 |
|
Not sure why it's not working. Everything looks right. I've sent you a PM. I've also come up with another solution using OFFSET. code:
|
# ¿ Jan 3, 2021 23:18 |
|
- You could use IFNA or ISBLANK to specify a default response for each given lookup. - INDEX would be better than VLOOKUP since you are just returning an item from a list. - Avoid using random, it regenerates any time you modify any cell, which lowers performance and will look silly when your comments are constantly switching. Try coming up with some deterministic way you pick which comment is returned. If you make a table for each class of comments then you could have the code adjust any time you add or subtract comments by using: INDEX(CommentTable,RANDBETWEEN(1,ROWS(CommentTable))) or, without the actual random element: INDEX(CommentTable,MOD(ROW(),ROWS(CommentTable))+1)
|
# ¿ Mar 13, 2021 23:44 |
|
Does it really need to be random though? In the example I posted I was using ROW() to cycle through the choices. If you are picking from 3 different lists then the result should look sufficiently random. If it still looks too much like a pattern then you could built a random number table and use that. Or use the contents of another cell in the row as a random number. There are plenty ways of avoiding using rand.
|
# ¿ Mar 14, 2021 22:53 |
|
Data Tab > New Query > From File > From Workbook Pull in your master data table. Filter the column for Day4. This would give you all of the product/dates for Day4. They could then filter this down to the products they want. If you really want a table where they plug in combinations and it gives a result then: For table 1 (your master table) add a column AB that is =[@A]&[@B] Then for column C in table 2 (your new table) use =INDEX(Table1[C],MATCH([@A]&[@B],Table1[AB],0))
|
# ¿ Jun 25, 2021 03:38 |
|
simplefish posted:The conditional formatting is set up as cell value = 0 is blue, <0 red, >0 green, applied to $F:$F. code:
When its at 0:00 and you change the format back to a number, what happens?
|
# ¿ Dec 9, 2021 07:38 |
|
kumba posted:
code:
code:
|
# ¿ Dec 30, 2021 00:16 |
|
HootTheOwl posted:=D1-B1+(24*(C1-A1)) It should just be either of the below: =(D2+C2-B2-A2) [Format as Time - Displays as Hours:Minutes] =24*(D2+C2-B2-A2) [Format as Number - Displays as decimal hours]
|
# ¿ Nov 28, 2023 05:32 |
|
HootTheOwl posted:I tested it before I posted it, the times were already split out
|
# ¿ Nov 28, 2023 06:42 |
|
HootTheOwl posted:Again, I tested it before I posted it. It gives 554 hours instead of 2 because you are multiplying the day difference by 24; in terms of hours it is evaluating as 1-23+(24*(24))
|
# ¿ Nov 28, 2023 07:35 |
|
HootTheOwl posted:It shouldn't be evaluating the day difference to 24, it should be evaluating it to 1. I do not know why for you it is evaluating it that way in yours. Subtracting is equal to days because date/times are stored as days, but you are multiplying by 24, which means now they are hours, and then adding the time difference, which is still in a unit of days. The unit mismatch is an error. If you change the resolved date to 11/28 your equation gives 143.0833333 (3434 hours) when it should just be 5.08 (122 hours).
|
# ¿ Nov 29, 2023 05:52 |
|
|
# ¿ May 3, 2024 15:39 |
|
Count Thrashula posted:I have a dumb niggling issue I can't figure out. code:
|
# ¿ Mar 20, 2024 09:46 |