Tue May 28, 2024 1:32 pm
Whenever i try that i get an error
`
Error in Cell: C14-Arg_IndexOutOfRangeException"=IF(C10="","12",_xlfn.IFERROR(MAX(C38,C39),""))".: at spr暧.spr똁(spr崩, String, Byte, Boolean) + 0x2fd
at spr崩.spr뫳(String) + 0x4f
at Spire.Xls.Core.Spreadsheet.XlsRange.set_Value(String) + 0x1c1
at Spire.Xls.AOT.NLXlsRange.XlsRange_set_Value(IntPtr, IntPtr, IntPtr) + 0x66
Traceback (most recent call last):
File "C:\Users\Bello Ango\Desktop\gohighlevel_automation_backend\app\automation\go_high_level\entry.py", line 49, in start_automation
excel_automation(
File "C:\Users\Bello Ango\Desktop\gohighlevel_automation_backend\app\automation\go_high_level\entry.py", line 230, in excel_automation
edited_workbook = fill_excel(
^^^^^^^^^^^
File "C:\Users\Bello Ango\Desktop\gohighlevel_automation_backend\app\automation\go_high_level\excel.py", line 48, in fill_excel
workbook = calculate_apr(workbook=workbook)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Bello Ango\Desktop\gohighlevel_automation_backend\app\automation\go_high_level\excel.py", line 81, in calculate_apr
cell.Value = "=IF(C10=" "," ",IFERROR(MAX(C38,C39)," "))"
^^^^^^^^^^
File "c:\Users\Bello Ango\Desktop\gohighlevel_automation_backend\.venv\Lib\site-packages\spire\xls\XlsRange.py", line 890, in Value
CallCFunction(GetDllLibXls().XlsRange_set_Value, self.Ptr, value)
File "c:\Users\Bello Ango\Desktop\gohighlevel_automation_backend\.venv\Lib\site-packages\spire\xls\common\__init__.py", line 109, in CallCFunction
raise SpireException(info)
spire.xls.common.SpireException: Error in Cell: C14-Arg_IndexOutOfRangeException"=IF(C10="","12",_xlfn.IFERROR(MAX(C38,C39),""))".: at spr暧.spr똁(spr崩, String, Byte, Boolean) + 0x2fd
at spr崩.spr뫳(String) + 0x4f
at Spire.Xls.Core.Spreadsheet.XlsRange.set_Value(String) + 0x1c1
at Spire.Xls.AOT.NLXlsRange.XlsRange_set_Value(IntPtr, IntPtr, IntPtr) + 0x66
Error occured while running Automation: 3
Error in Cell: C14-Arg_IndexOutOfRangeException"=IF(C10="","12",_xlfn.IFERROR(MAX(C38,C39),""))".: at spr暧.spr똁(spr崩, String, Byte, Boolean) + 0x2fd
at spr崩.spr뫳(String) + 0x4f
at Spire.Xls.Core.Spreadsheet.XlsRange.set_Value(String) + 0x1c1
at Spire.Xls.AOT.NLXlsRange.XlsRange_set_Value(IntPtr, IntPtr, IntPtr) + 0x66
`
here is my code
cell = quote_sheet.Range[cell]
cell.Value = "=IF(C10=" "," ",IFERROR(MAX(C38,C39)," "))"