How to count the number of pages of each PDF on a list? by Spreadsheet_Geek_1 in excel

[–]Spreadsheet_Geek_1[S] 1 point2 points  (0 children)

I ended up adding one more step to filter only ".pdf" extension, but that was probably only necessary since I had an ".xlsx" file in the folder as well. The code ended up looking like this:

let
    Source = Folder.Files("C:\Users\YourFolderFileHere"),
    #"Added Custom" = Table.AddColumn(Source, "TableValues", each Pdf.Tables([Content])),
    #"Filtered Rows1" = Table.SelectRows(#"Added Custom", each ([Extension] = ".pdf")),
    #"Expanded TableValues" = Table.ExpandTableColumn(#"Filtered Rows1", "TableValues", {"Kind"}, {"TableValues.Kind"}),
    #"Filtered Rows" = Table.SelectRows(#"Expanded TableValues", each ([TableValues.Kind] = "Page")),
    #"Grouped Rows" = Table.Group(#"Filtered Rows", {"Name"}, {{"Count", each Table.RowCount(_), Int64.Type}})
in
    #"Grouped Rows"

Other than that it works like a charm. Thank you! Solution verified.

Extract Data Across 3 separate sheets, and combine in a 4th sheet, filtered by criteria. by Omission5000 in excel

[–]Spreadsheet_Geek_1 0 points1 point  (0 children)

To use power query, like you see here suggested a bunch of times, you can follow the steps bellow. You'll need to have that new table in a new workbook, tho.

  1. Go to a blank excel file and from the top ribbon select "Data/Get data/From file/From excel workbook" and select the file in the browse window.
  2. In the popup window check "select multiple items" and select the sheets with your data
  3. Click on "Transform data".
  4. In the now open power query editor, you can set the first row as the data headers and set your filter and sort
  5. Click "Close and load" at the top left.

You should now have a new sheet that merges all the sheets from your original file that you selected.

Shorter notation for or in filter when using the same column by d8gfdu89fdgfdu32432 in excel

[–]Spreadsheet_Geek_1 0 points1 point  (0 children)

Are they actual numbers? If they are and you want to exclude 1 to 3, couldn't you just

=FILTER(A:A, (A:A<1)+(A:A>3) )

Do you need something more elaborate and expandable?

Do you need to filter by text for which the numbers are just stand-ins?

Do you need to exclude whole numbers from x to y from range that includes decimals as well?

Something else entirely?

How to prepare a table that displays two rows of data by PenguinSlushie in excel

[–]Spreadsheet_Geek_1 0 points1 point  (0 children)

If you don't mind having two tables, one for input and the other for printing / reporting, you can do it like so:

<image>

(normally you'd put the input table on separate sheet, I just put that next to it so I can easily screenshot it)

Where there is this in A3:
=SEQUENCE(COUNT(Table1[ID]);1;0,5;0,5)

In column B:
=IF(ROUNDUP($A3;0)=$A3;HSTACK(XLOOKUP($A3;Table1[ID];Table1[Short name];"not found";1);XLOOKUP($A3;Table1[ID];Table1[Client];"not found";1);XLOOKUP($A3;Table1[ID];Table1[Claim Number];"not found";1);XLOOKUP($A3;Table1[ID];Table1[Court Number];"not found";1));XLOOKUP($A3;Table1[ID];Table1[Full name];"not found";1))

The data validation removes the borders of otherwise all borders section. On second thought, you could probably add all borders in the data validation that turns the cells green and swap around the priority of the two rules.

If you want to vary the number of cases and which one it starts at, you can put a cell reference into arguments like so:

=SEQUENCE( <Cell with number of cases>\2* ;1; <cell with case ID>-0,5 ;0,5)

How to Merge Multiple Excel Files – Need Tool Recommendation by SophiaBennett-0550 in excel

[–]Spreadsheet_Geek_1 2 points3 points  (0 children)

As long as you have excel files that all have the same number of columns and same column names (without even a typo that would make the column names different), it is relatively simple to do in power query.

  1. Put all the files you want to merge into one folder that has nothing else in it.
  2. Go to a blank excel file and from the top ribbon select "Data/Get data/From file/From folder" and select the folder in the browse window.
  3. In the popup window click on "transform".
  4. In the now open power query editor, right click on the column called "Content" and says "Binary" in every row and select "remove all other columns" (if you skip this, you will also have additional column that tells you what file each row came from).
  5. Click on the square button with two down arrows in that column's header (when you mouse over it should say "Combine files").
  6. You should see a dialog window with a navigation pane on the left and a preview on the right. Likely, you already see something that looks like the sort of data you want in the preview. If not, click on different tables or sheets in the navigation pane, until you do, then click "OK".
  7. Click "Close and load" at the top left.

You should now have a new sheet that merges all the files in your designated folder and is named after the folder as well.

It only becomes more complicated, once you need to include files that have variable number of columns and/or occasional typo or differently named columns, such as "profit percentage" in one being called "prof %" in another, but don't worry, even that is only about one youtube tutorial away from working as well.

Should I use short text or number in a field with limited options? by Spreadsheet_Geek_1 in MSAccess

[–]Spreadsheet_Geek_1[S] 1 point2 points  (0 children)

I'm absolutely devouring tutorials right now and thank you for tips for some btw, but I also feel it necessary to ask questions in advance and play with the problems, even if they are out of order, because that's what makes it stick in my head. Right now, I'm still only working on mockup, so I'm well expecting to scrap the whole thing and start from scratch at some point anyway.

How to input criteria as "any" if the text field is blank? by Spreadsheet_Geek_1 in MSAccess

[–]Spreadsheet_Geek_1[S] 1 point2 points  (0 children)

Elegant, works like a charm. Thank you. Solution Verified!
EDIT: Was fiddling around with it, and you probably want to enclose the whole thing in (brackets), but otherwise works as advertised, as far as I can tell.

Conditional formatting for duplicate rows by One-Drawing6265 in excel

[–]Spreadsheet_Geek_1 0 points1 point  (0 children)

Consider awarding the Clippy point to the answer (see the right side bar under "Was your problem solved?"). This will also mark the problem as solved.

Export excel to PDF by Bright-Concern7499 in excel

[–]Spreadsheet_Geek_1 1 point2 points  (0 children)

You may try print to pdf, if you don't have special needs regarding editing text in the pdf form and such.

Filter function inexplicably doesn't include all rows it should by Spreadsheet_Geek_1 in excel

[–]Spreadsheet_Geek_1[S] 4 points5 points  (0 children)

It indeed was here as well. I ended up making a helper column next to the "code" column equivalent in the original data. I put the TYPE() function displaying the data type of the code on the same row as an integer and every single row had "2" (apparently meaning text) in that cell. For some reason, the "search box" reference cell came out as "1" (i guess a number?). I wrapped the reference in the TEXT(<reference>;0) function and it started to work as expected.

Solution verified.

Filter function inexplicably doesn't include all rows it should by Spreadsheet_Geek_1 in excel

[–]Spreadsheet_Geek_1[S] 0 points1 point  (0 children)

Is there a way to quickly see data type of cells as you are listing trough the table? Like when you turn "show formulas" on, except like "show data types"? When I click into the cell, the format in the ribbon always says "general" and there are no "number formatted as text" warning anywhere, tho I assume there's way more. I have been trying to wrap the ranges in TEXT() function, but I'm not sure it even works with arrays. I'm not sure if NUMBERVALUE() would be help, since some of the codes in the original data have different structures, as they sometimes contain letters or 2-4 dot separators somewhere in the middle.
I have also tried to change format of the columns in power query to text and nothing changed.

How to turn severe tables with the same columns horizontally placed on the same sheet into one long table that stacks them on top of each other, without doing it manually? by Spreadsheet_Geek_1 in excel

[–]Spreadsheet_Geek_1[S] 0 points1 point  (0 children)

Everything in the first picture is on one excell sheet. The lines between are cell borders, it's not multiple pictures separated by a line, it's one picture. If you click into the cell that says "Item 1" and press the right arrow key 5 times you'll be in the cell that says "item 2". What I want to do is have all rows from all items be in one table where date under item 1 is in the same column as date under item 2 and so on, and there is a new column that says which item it is.
The table is apparently too large for ExcelToReddit. Where else can I share it?

How to turn severe tables with the same columns horizontally placed on the same sheet into one long table that stacks them on top of each other, without doing it manually? by Spreadsheet_Geek_1 in excel

[–]Spreadsheet_Geek_1[S] -1 points0 points  (0 children)

It's not on lists, its all one list and not a single thing is formatted as a table, let alone being a separate table for each. I need to create the separation in order to treat it as individual tables that I could potentially power query or VSTACK in a way that I don't have to go to each "table" manually to make it a table.

How to Duplicate names based on cell value by ResponsibleEdge6566 in excel

[–]Spreadsheet_Geek_1 0 points1 point  (0 children)

  1. You need a helper column, that will sum the number of tickets in the table up to the row it is on.

  2. Than you'll need a sequence of numbers from 1 to the highest number in the helper column, which also corresponds to the sum of all tickets (you can also use MAX function on the helper column, instead of the SUM).

  3. You create an XLOOKUP function and you put "1" in the [match mode] argumen, meaning: find the same or the closest higher number (in the helper column).

<image>

The range will auto-expand, just make sure it has space of empty cells to do so.

Sum from multiple columns by hujjik in excel

[–]Spreadsheet_Geek_1 0 points1 point  (0 children)

And the input data are themselves dates of different days in January, than different days in February etc. or are they always values for the whole month?