Posts

Showing posts from August, 2025

excel

Yes, ✅ you can do this directly in Excel using a formula — no code or external tool required . Here’s how you can achieve the same logic using a formula in Column N of the "Icon Tracker" sheet: ๐Ÿง  What You Want: For each row: Check if value in Column M exists in Column G of the "ICON management" sheet. If not found and the value is not "NA" , show: "Icon not present in management Sheet" . If value is "NA" → leave blank . ✅ Excel Formula for Column N (e.g., N2): =IF(OR(M2="NA", ISNUMBER(MATCH(M2, 'ICON management'!G:G, 0))), "", "Icon not present in management Sheet") ๐Ÿ’ก Explanation: Part Meaning M2="NA" Checks if current row's value in Column M is "NA" (case-sensitive, use LOWER() for case-insensitive). MATCH(M2, 'ICON management'!G:G, 0) Looks for M2's value in Column G of "ICON management". Returns row number if fo...

my work

Bdbjfjjfnnfnf

close

Great choice! ✅ ClosedXML is: ๐Ÿ’ฏ Free for commercial and non-commercial use (MIT License). ๐Ÿงผ Easier to use than EPPlus. ๐Ÿ“ Works with .xlsx files only. ๐ŸŽฏ Goal Recap We will use ClosedXML to: Open two Excel files. In File 1 , sheet "Icon Tracker" , read values from Column M . In File 2 , sheet "ICON management" , read values from Column G . For each value in Column M: If it’s not found in Column G → write "Icon not present in management Sheet" in Column N (same row). Save File 1 with the updates. ๐Ÿ“ฆ Install ClosedXML In Package Manager Console : Install-Package ClosedXML ๐Ÿ“„ ExcelService.cs Using ClosedXML using ClosedXML.Excel; using System; using System.Collections.Generic; using System.IO; namespace WpfIconCheckerApp.Models { public class ExcelService { public static string CompareExcelFiles(string file1Path, string file2Path) { try { using var workbook1 = new XLWorkbo...

epplus

Perfect! ✅ Let's replace Microsoft.Office.Interop.Excel with EPPlus , which: Doesn't require Microsoft Excel to be installed. Is much faster and more stable for server/desktop apps. ๐Ÿ”ง Updated Requirements Read 2 Excel files . In File 1 , "Icon Tracker" sheet → get Column M values. In File 2 , "ICON management" sheet → get Column G values. If value in Column M is not in Column G , write "Icon not present in management Sheet" in Column N . Use EPPlus (works on .xlsx only). ๐Ÿ“ฆ Install EPPlus via NuGet Run this in the NuGet Package Manager: Install-Package EPPlus ๐Ÿง  Updated ExcelService.cs using EPPlus using OfficeOpenXml; using System.Collections.Generic; using System.IO; namespace WpfIconCheckerApp.Models { public class ExcelService { public static string CompareExcelFiles(string file1Path, string file2Path) { ExcelPackage.LicenseContext = LicenseContext.NonCommercial; try ...

icon tracking

Here’s a WPF application using MVVM pattern in C# that: Reads two Excel files . Compares values in Column M of the "Icon Tracker" sheet in the first Excel file with Column G of the "ICON management" sheet in the second Excel file. If a value from Column M is not present in Column G , it writes "Icon not present in management Sheet" in the corresponding Column N of the first Excel file. ๐Ÿ›  Technologies Used C# WPF (MVVM) Microsoft.Office.Interop.Excel ๐Ÿ“ Folder Structure WpfIconCheckerApp/ ├── ViewModels/ │ └── MainViewModel.cs ├── Views/ │ └── MainWindow.xaml ├── Models/ │ └── ExcelService.cs ├── App.xaml ├── MainWindow.xaml.cs └── WpfIconCheckerApp.csproj 1️⃣ MainWindow.xaml (View) <Window x:Class="WpfIconCheckerApp.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:x=...

cmd

The ADB command string to invoke Google Assistant is: adb shell am start -a com.google.android.googlequicksearchbox.action.ASSIST You can run this in C# by passing it as the argument string to adb .

export

To export the DataGrid content to an Excel (.xlsx) file , we’ll use ClosedXML — a popular .NET library for working with Excel files. ✅ Step-by-Step Update ๐Ÿ“ฆ 1. Install ClosedXML NuGet Package Run this in Package Manager Console : Install-Package ClosedXML ๐Ÿง  2. Update ViewModel ( MainViewModel.cs ) Add a new command: public ICommand ExportToExcelCommand => new RelayCommand(ExportToExcel); Add this method to MainViewModel : private void ExportToExcel() { var dialog = new SaveFileDialog { Filter = "Excel Workbook (*.xlsx)|*.xlsx" }; if (dialog.ShowDialog() == true) { using var workbook = new ClosedXML.Excel.XLWorkbook(); var worksheet = workbook.Worksheets.Add("Command Results"); worksheet.Cell(1, 1).Value = "Command ID"; worksheet.Cell(1, 2).Value = "ADB Command"; worksheet.Cell(1, 3).Value = "CAN Signal"; worksheet.Cell(1, 4).Value = "Expected Value";...