Column Difference

How to get the column differences

Eg: I have 2 values like AA and AF

The difference between the column is 5

How to get the value like this?

Please help

@Sweety_Girl

dt.column.index("AF")-dt.column.index("AA")

1 Like

@Sweety_Girl Is “AA” and “AF” column Names or the Values in different Columns ?

1 Like

Its “AA” “AF”

No, It Doesn’t work

is AA is column name or cell reference?

1 Like

Cell Reference!!

Do you know the column names?
if yes then use
dt.column.index(“Column1”)-dt.column.index(“column2”)

1 Like

Its not working at my end,

Did that works for you??

@Sweety_Girl I think it should be :
dt.Columns.IndexOf(“ColumnName2”)-dt.Columns.IndexOf(“ColumnName1”)

But it Should be Column Names not Cell Reference

2 Likes

You need to write those column names there

1 Like

I am working in Cell referencing, Like using the loop up range and getting cell reference and processing…

So now I am getting two references like AA5 and AF5

I need the difference for AA and AF??

Hi
please refer this this will help you

and then use it for subtraction

@Sweety_Girl
How to you get the cell references ?

LookUp Range

@Sweety_Girl so you should be providing a lookup value as well in lookup range ?

1 Like

@Sweety_Girl

You can use this code.

LEtterToNumber.xaml (6.5 KB)

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.