Satish_Ch
(Satish Ch)
December 9, 2021, 6:13am
1
Hi
I have two excels DT1 and DT2. DT2 has 4 columns and in 4th column i will be writing sumif formula.
What i have to sumif is…I have to take column"Wb" from Dt1,next column should be from Dt2 …column1 name as " DISALLOWED" and also column from DT1 which has name “IR”.
Could someone help me on this @ppr @Palaniyappan @vvaidya @ClaytonM @mickeymack @supermanPunch @Zac_Soh @MAHESH1 @kirankumar.mahanthi1 @mukeshkala @StefanSchnell @prasath_S
Hi @Satish_Ch
Could you explain ur query with screenshots , could not getting the ur query ?
Regards,
Nived N
2 Likes
Satish_Ch
(Satish Ch)
December 9, 2021, 6:47am
3
i need to calculate = sumif(‘Final Report’!D:D,‘Disallowed’!B11,‘Final Report’!AL:AL)
Here final report and disallowed are two sheets in one excel…i need to write calculation in disallowed sheet in G column
so you need to copy the formula to all cells under G column upto data resides?
ImPratham45
(Prathamesh Patil)
December 9, 2021, 7:15am
5
You can Use write cell for writing formula directly in Cells of G column.
Or You can use for each row and apply this formula for given column.
Or you can directly use macro code to apply formula.
@Satish_Ch
Then use write cell as specified by @ImPratham45
better to use invoke code with microsoft interop excel it will fasten up the speed of processing
Satish_Ch
(Satish Ch)
December 9, 2021, 7:37am
9
We are not allowed to use invoke code.
Could you tell me how to write this with linq query if possible
Satish_Ch
(Satish Ch)
December 9, 2021, 7:38am
10
We cant use for loop as this will take time and macros as suggested by client not to use.
Could you let me know if we can write linq query for this.
Satish_Ch
(Satish Ch)
December 9, 2021, 10:24am
13
Its not working.Can u help me with the linq query for this.
Satish_Ch
(Satish Ch)
December 9, 2021, 12:33pm
14
Does anyone provide me the linq query for this.
Satish_Ch
(Satish Ch)
December 10, 2021, 7:30am
15
Could you help me how to write this directly into writecell
And how to write it if i use datatables to store first
ImPratham45
(Prathamesh Patil)
December 10, 2021, 7:53am
16
Can you share what you wrote in given screenshot. As i am not getting any error
Satish_Ch
(Satish Ch)
December 10, 2021, 8:04am
17
I cant use hardcorded values like this …so i will be storing it in datatable first…finalreport as dt1 and disallowed as dt2
For that i need syntax
ImPratham45
(Prathamesh Patil)
December 10, 2021, 8:12am
18
whatever you wrote in write cell please give me that string
Satish_Ch
(Satish Ch)
December 10, 2021, 8:16am
19
Screenshot is having the string bro already
where Finalreport is one sheet name and disallowed is another sheetname
ImPratham45
(Prathamesh Patil)
December 10, 2021, 8:18am
20
store them in String variable not in Datatable
1 Like