Skip to content

Excel Use Cases ​

Explore 6 practical ways func_SMILES2IMG turns Microsoft Excel into a self-contained chemistry workbench—with copy-ready multi-column sheets you can paste straight into cell A1.

Use CaseWhat You Can DoKey Tool
1. Synthesis ELN & StoichiometryAuto-fill SMILES, structures, MW, and mg weights from names or CAS=NAME2SMILES, =SMILES2MW
2. Hit-to-Lead SAR TriageHighlight query scaffolds and screen transparent ADME thresholds live=SMILES.MATCH, "hl:"
3. Reagent & Library DeduplicationNormalize vendor SMILES variations into InChIKey for COUNTIF & XLOOKUP=SMILES2INCHIKEY
4. SDF Import & Office HandoffConvert .sdf files to 11-column live tables and reuse schemes in Word/PPT[Import SDF], [Batch Style]
5. R-Group Analog EnumerationSwap R-groups with SUBSTITUTE and preview analog structures & properties offline=SUBSTITUTE, =SMILES2IMG
6. Dynamic Lead Comparison & FILTERCompare in-cell structure images dynamically via XLOOKUP and FILTER (365+)=XLOOKUP, =FILTER

1. Synthesis ELN & Stoichiometry ​

Eliminate switching between ChemDraw, PubChem, and manual weight calculators during reaction setup. Sketch your reaction scheme once at the top via [SMILES] ➔ [Insert / Edit (KET)], then type reagent names or CAS numbers in column A to auto-populate SMILES, structures, live numeric MW, and mg weighing values.

Launch Ketcher from Excel to draw reaction arrows and persist lossless KET JSON.
  1. Paste the table below into A1 (append .FLOAT to =SMILES2IMG on Excel 2016–2021).
  2. Adjust the scale in E2 (5.0 mmol) to recalculate every reagent weight (F2:F4) immediately.
  3. Click [SMILES] ➔ [Insert / Edit (KET)] on a header cell to attach a double-click-editable reaction scheme.
ELN Stoichiometry Calculator SheetA1:F4
Paste at A1
1AReagent / CASBSMILESCStructureDMWEmmolFMass (mg)DescriptionResultCopy
2Salicylic Acid=NAME2SMILES(A2)=SMILES2IMG(B2)=SMILES2MW(B2)5.0=ROUND(D2*E2, 1)Limiting reagent (1.0 eq)690.6 mg
3Acetic Anhydride=NAME2SMILES(A3)=SMILES2IMG(B3)=SMILES2MW(B3)=E2*1.5=ROUND(D3*E3, 1)Excess reagent (1.5 eq)765.7 mg
450-78-2=NAME2SMILES(A4)=SMILES2IMG(B4)=SMILES2MW(B4)=E2=ROUND(D4*E4, 1)Theoretical Aspirin product900.8 mg

2. Hit-to-Lead SAR Triage ​

Point every analog row to a single query scaffold cell ($B$2) so editing one SMARTS pattern updates substructure flags, color-highlighted 2D structures, and MW/LogP triage tiers across your entire screening table simultaneously.

Filter scaffolds with =SMILES.MATCH and highlight matching rings with hl:SMARTS.
  1. Paste the sheet below at A1 ($B$2 holds the editable query SMARTS c1ccncc1).
  2. Edit $B$2 (e.g., change to c1ccccc1) to watch columns C:E re-flag and re-highlight automatically.
  3. Use Excel Sort & Filter—native in-cell structures stay locked to their rows on Microsoft 365 / Excel 2024+.
Dynamic Query SAR Triage SheetA1:E3
Paste at A1
1ATarget SMILESBQuery ($B$2)CMatchDHighlighted 2DEPriority TierDescriptionResultCopy
2CC(=O)Oc1ccccc1C(=O)Oc1ccncc1=SMILES.MATCH(A2, $B$2)=SMILES2IMG(A2, "", "hl:"&$B$2)=IF(AND(SMILES2MW(A2)<=500, SMILES2LOGP(A2)<=4, SMILES.MATCH(A2, $B$2)), "Priority", "Monitor")Aspirin vs. pyridine queryMonitor
3CN1CCCC1c2cccnc2=SMILES.MATCH(A3, $B$2)=SMILES2IMG(A3, "", "hl:"&$B$2)=IF(AND(SMILES2MW(A3)<=500, SMILES2LOGP(A3)<=4, SMILES.MATCH(A3, $B$2)), "Priority", "Monitor")Nicotine matches $B$2 scaffoldPriority

3. Reagent & Library Deduplication ​

Chemical vendors and papers often write the exact same molecule with different SMILES atom orderings (c1ccccc1C(=O)O vs. O=C(O)c1ccccc1). Generating the invariant 27-character InChIKey lets Excel detect duplicates via COUNTIF, merge tables via XLOOKUP, and clean master lists with Remove Duplicates.

Cross-convert chemical identifiers and render structures directly from InChI strings.
  1. Paste the sheet below at A1 to compare two different SMILES writings of Benzoic acid alongside Aspirin.
  2. Expand COUNTIF($C$2:$C$4, C2)>1 across all rows to flag chemically identical entries live.
  3. Cross-join vendor pricing or assay data across sheets by matching the InChIKey column with XLOOKUP.
InChIKey Deduplication SheetA1:D4
Paste at A1
1AInput SMILES / NameBCanonical SMILESCInChIKeyDDuplicate FlagDescriptionResultCopy
2c1ccccc1C(=O)O=INCHI2SMILES(SMILES2INCHI(A2))=SMILES2INCHIKEY(A2)=IF(COUNTIF($C$2:$C$4, C2)>1, "Duplicate", "Unique")Benzoic acid (ring-first SMILES)Duplicate
3O=C(O)c1ccccc1=INCHI2SMILES(SMILES2INCHI(A3))=SMILES2INCHIKEY(A3)=IF(COUNTIF($C$2:$C$4, C3)>1, "Duplicate", "Unique")Same molecule (carboxyl-first)Duplicate
4Aspirin=NAME2SMILES(A4)=SMILES2INCHIKEY(B4)=IF(COUNTIF($C$2:$C$4, C4)>1, "Duplicate", "Unique")Resolved from nameUnique

4. SDF Import & Office Handoff ​

Import .sdf screening libraries exported from RDKit, KNIME, DataWarrior, or PubChem into a live formula sheet, triage hits, and transfer publication-ready structures directly to Word and PowerPoint without redrawing.

Click [SMILES] -> [Import SDF] to generate an 11-column live SAR sheet.
  1. 11-Column Import: Click [SMILES] ➔ [Import SDF] to generate formatted rows with Name, Structure, SMILES, Formula, MW (g/mol), Exact Mass, LogP, TPSA, Rings, Aromatic Rings, and Fsp3.
  2. Batch Restyle: Filter down to top hits and run [SMILES] ➔ [Batch Style] ➔ [Publication B&W] (or Dark Mode).
  3. Hand Off Without Redrawing:
    • To Word: Copy filtered table rows into Word, or click [Copy SMILES] / [Copy KET] and run [Paste Structure] (Word Use Cases).
    • To PowerPoint: Paste hits onto slides with [Paste Structure], then apply [Batch Style] ➔ [Dark Mode] (PowerPoint Use Cases).

5. R-Group Analog Enumeration ​

Simulate entire analog series inside Excel using native SUBSTITUTE—no Python or RDKit scripts required. Adding a single substituent SMILES fragment renders the analog and updates MW, Formula, LogP, and TPSA locally.

Compute physicochemical and 3D complexity descriptors locally offline.
  1. Paste the enumeration table below at A1 ($B$2 holds the [R] scaffold template).
  2. Add more SMILES fragments down column A (Cl, OC, C#N) and fill columns C:F downward.
  3. Combine with =SMILES2LOGP(C2) or =SMILES2TPSA(C2) to spot ADME trade-offs before synthesis.
R-Group Enumeration SheetA1:F4
Paste at A1
1AR-GroupBTemplate ($B$2)CAnalog SMILESD2D StructureEMWFFormulaDescriptionResultCopy
2OCC(=O)Nc1ccc([R])cc1=SUBSTITUTE($B$2, "[R]", A2)=SMILES2IMG(C2)=SMILES2MW(C2)=SMILES2FORMULA(C2)4-OH analog (Paracetamol)151.16 · C8H9NO2
3F=SUBSTITUTE($B$2, "[R]", A3)=SMILES2IMG(C3)=SMILES2MW(C3)=SMILES2FORMULA(C3)4-Fluoro analog153.16 · C8H8FNO
4C(F)(F)F=SUBSTITUTE($B$2, "[R]", A4)=SMILES2IMG(C4)=SMILES2MW(C4)=SMILES2FORMULA(C4)4-CF3 analog203.16 · C9H8F3NO

6. Dynamic Lead Comparison & FILTER ​

Because =SMILES2IMG returns a native in-cell CellImage on Microsoft 365 / Excel 2024+, native lookup and dynamic array formulas move the rendered structures themselves alongside numbers.

Scale cell row height and fill down =SMILES2IMG(B2) across rows.
  1. Dropdown Lead Comparator: Use Excel Data Validation dropdowns in B2 and C2 pointing to compound names on a Library sheet, then pull each live structure cell with =XLOOKUP(B2, Library!$A:$A, Library!$C:$C) paired with =SMILES.MATCH(B3, Library!$B$1) and ΔMW / ΔLogP rows.
  2. Live Spilling FILTER Shortlist: Combine property cutoffs into a dynamic shortlist whose images update automatically whenever thresholds change:
    text
    =FILTER(Library!A2:F200, (Library!E2:E200<=4.0)*(Library!F2:F200<=90))

Microsoft 365 / Excel 2024+ Only

Moving rendered structure images through XLOOKUP or FILTER requires native in-cell pictures (=SMILES2IMG), not Excel 2016–2021 .FLOAT shapes.


Next Steps ​

Released under the MIT License.