Helo everyone need your help.
I had one file that I get from daily report download with xlsx extension.
Then I want to insert to MongoDB for analytic cause per day can be 100K rows, and I use golang with excelize to extract excel data then insert them to mongoDB, there is the problem :
When I GetRows("Sheet 1") the result is 0 and when I check the sheet with GetSeetMap() result is [0:Sheet 1] and it is still 0 rows.
But when I renamed sheet name (ie: rename to another Sheet) and I check the sheet map it change to [1:another Sheet] and rows detected when the sheet map key is 1, how to fix this?
Thanks for advance
Are you sure it shouldn't be "Sheet1" (i.e. without a space)?
Related
I need to get specific value from data table 1 sheet1, sheet2, sheet3, sheet4 and write it to specific cell in my data table 2.
what approach I should do.
I want it to be dynamic.
Please do provide more specific. I am assuming you need to read all the sheets in an excel file and act to that data. For read all the sheets in an Excel file (.xlsx) I used the following:
Then I iterated through the sheet names to read each sheet
Hope this helps for the first part of your question!
I have 2 SharePoint sites (SiteA and SiteB) In siteA I have an excel file called LocationA, when this file is edited (rows added, rows edited or rows deleted) I want to reflect these changes in another excel file called LocationB which is stored in SiteB (I have not added the delete operation yet but suggestions on how I might do so are welcomed).
The issue is that the flow is adding rows instead of updating the existing rows in LocationB.
Please find my flow below (it is running without errors but the output is the problem)
Note
The expression in the filter array is string(items('Apply_to_each')?['ID']) which changes the ID field to String
The expression in condition 2 is empty(body('Filter_array')) this condition checks if the list item exists in excel
Because you are using the action to add a row in the power automate, you need to change the action for example, Update a row. That will work.
I am working with two spreadsheets; the first spreadsheet takes a name and then automatically adds it to the next spreadsheet which is sorted alphabetically by name. The problem is, I need a new row to be created, otherwise the data from the row above it gets added along with the name. Here is the query I am using: '=query(Referrals!A2:O, "select * where C is not null order by D")'. I don't think this can be done with a query, so I have been exploring Google App Scripts. I am not sure how to insert into the pre-sorted list, though. Any help is greatly appreciated!
Have you tried offsetting the header so you can run it for the range of the sheet?
=query(Referrals!A:O, "select * where C is not null order by D Offset 1")
That seems to fix some of the issues I've come across.
EDIT:
What about using a filter formula?
=sort(FILTER(offset(Referrals!$A:$O,1,0),offset(Referrals!$C:$C,1,0)<>""),4,true)
If using Apps Script, then you can directly insert a row (via Sheet.insertRows(rowIndex, numRows)) into the sheet at the desired index. But I believe you can achieve what you want by mapping the data in "next spreadsheet" to the names imported via "query" using VLOOKUP. That way when new data is added to "first spreadsheet" it will be sorted accordingly with your formula, but now the data associated will move rows to continue matching their respective row.
I have a .csv file which consists of 7 columns: ID, Title, Media-Type, Published, Content, Source and Label.
The .csv file/dataset is as given here:
Dataset
Now, what I want to do is transform the values given the last column of "Label". That is, I want to convert the "0"s in the dataset to read as "FALSE" and the "1"s in the dataset to read as "TRUE". Simply put, I want "TRUE" in place of 1s and FALSE in place of 0s. Is there any way this can be done? Any kind of help is appreciated. Thanks a lot in advance.
Use Get & Transform to open the CSV file, then select the column, replace 1 with TRUE and 0 with FALSE and load the result into a worksheet. That way you will have no formulas in the sheet. With Get & Transform you can also repeat the query with one click if the underlying data source changes.
You can use a formula like this.
=IF(G2=1,TRUE, FALSE)
I am working on a project which requires me check for the last used row in the spreadsheet and then extract data from a range of cells from another spreadsheet after this last used row in a cell (i.e. A10 etc.)
The problem is that i know which column name from the current spreadsheet to use for importing data (i.e column A), but is there a way to assign the row number and make a cell which looks like "A". The last used keeps changing as the last row used keeps changing as we add data.
Here is the current code to maybe better explain myself:
LastRow = Cells.SpecialCells(xlCellTypeLastCell).Row
CurrRow = LastRow + 1
ExtractExcelToArray wsDCCTabA.Range("C15:C25") ' Extracting from here
ExportAccesstoExcel wsTempGtoS.Range("E&CurrRow:E12") 'importing into current spreadsheet code here
As you can see, i tried using something like "E&CurrRow" but it doesnt seem to work. Any help is appreciated.
ExportAccesstoExcel wsTempGtoS.Range("E" & CurrRow & ":E12")