Skip to content

Infragistics Community Forum / Web / Ignite UI for ASP.NET Core / Infragistics Excel formula Query

Infragistics Excel formula Query

New Discussion
KUMARAN krishnamurthi
KUMARAN krishnamurthi asked on Jan 9, 2026 9:40 AM

Hi,

We are using Infragistics Excel control, facing some issue how to copy First row formulas to all other rows with cell increment eg.

First Row formulas

K1=IF(D1=”96″,””,A1)    L1=IF(D1=”96″,””,B1) ,etc.,

same apply to 

K-L column copy for all rows having 1046 rows. formula should change all cell with row id eg K2 should have

K2=IF(D2=”96″,””,A2)    L2=IF(D2=”96″,””,B2) ,etc.,

 

Note: please share code sample with VB.net

 

Thanks,

Kumaran Krishnamurthi

Sign In to post a reply

Replies

  • 0
    Andrew Goldenbaum
    Andrew Goldenbaum answered on May 4, 2021 6:57 PM

    Hello Kumaran,

    There does not exist a built-in way to copy a formula to each row of a Worksheet with a cell increment, but this behavior could be easily achieved using a loop. For example, the following code would achieve one of your “IF” formulas for the first 1046 cells:

            Dim workbook As Workbook = New Workbook(WorkbookFormat.Excel2007)
            Dim sheet As Worksheet = workbook.Sheets.Add("Sheet1", SheetType.Worksheet)
    
            For i As Integer = 1 To 1046 - 1
                Dim cell As WorksheetCell = sheet.GetCell("K" & i.ToString())
                Dim formulaString As String = "=IF(D" & i.ToString() & "=" & """96""" & "," & """""" & ",A" & i.ToString() & ")"
                cell.ApplyFormula(formulaString)
            Next

    I hope this helps you. Please let me know if you have any other questions or concerns on this matter.

    • 0
      Moon Shah pattoki
      Moon Shah pattoki answered on Feb 6, 2024 6:54 AM

      Thanks a lot.It also help me.

  • 0
    sunita  sharma
    sunita sharma answered on Mar 1, 2024 12:36 PM

    Hii everyone

    To solve the problem of Infragistics Excel controlwe need to use the to copy the formula from the first row to all other rows with cell increments:

    Get the formula from the first row.
    Repeat each next row.
    Update the formula in each cell to adjust cell references based on the row index.
    Apply the update formula to the corresponding cell in each row.
    Be sure to handle any edge cases or special conditions specific to your implementation.

    • 0
      Roberto Hortelano
      Roberto Hortelano answered on Apr 12, 2024 2:39 PM

      Thank you very much for the contribution

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
KUMARAN krishnamurthi
Favorites
0
Replies
4
Created On
Jan 09, 2026
Last Post
1 year, 10 months ago

Suggested Discussions

Created on

Jan 9, 2026 9:40 AM

Last activity on

Feb 24, 2026 7:00 AM