Excel changing ROW to @ROW #1555
MarianiVentura
started this conversation in
General
Replies: 1 comment 1 reply
-
|
@MarianiVentura have not seen that before. Please could you post some scrubbed csv data. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Good day.
I am wondering if anyone else is having the issue where Excel changes my ROW calculations to @Row?
Consider the following code. I am importing a csv, then creating the formula with ROW, but the final Excel changes this to @Row.
I have manually do a search/replace in Excel to fix these or else the formula doesn't work.
Any ideas?
Thanks.
$excel = Import-Csv $outputFile -Delimiter ^ | Export-Excel $excelFile -Title $title -WorksheetName 'SalesOrders' -AutoSize -AutoNameRange -TableName SO -FreezePane 3 -Passthru $formula = "AVERAGE(IF(SUBTOTAL(9,OFFSET(`$J`$3:`$J`$$Frow,ROW(`$J`$3:`$J`$$Frow)-MIN(ROW(`$J`$3:`$J`$$Frow)),,1))>0,`$J`$3:`$J`$$Frow))" # Set the Excel range with the formula Set-ExcelRange -Range $sheet.Cells["J1"] -Formula $formula -BackgroundColor yellowBeta Was this translation helpful? Give feedback.
All reactions