SMILES & InChI Structure Images
Render high-resolution 2D molecular structures directly inside Excel cells from SMILES strings (=SMILES2IMG) or IUPAC InChI strings (=INCHI2IMG)—scaling sharply with row height and sorting cleanly alongside table rows.
SMILES & InChI Rendering SheetA1:C3
Paste at A1
| 1 | ACompound | BSMILES / InChI | CFormula | Description | Result | Copy |
|---|---|---|---|---|---|---|
| 2 | Ethanol | CCO | =SMILES2IMG(B2) | Render in-cell 2D structure from SMILES (Col B) | 2D Ethanol | |
| 3 | Ethanol | InChI=1S/C2H6O/c1-2-3/h3H,2H2,1H3 | =INCHI2IMG(B3) | Render in-cell 2D structure from IUPAC InChI (Col B) | 2D Ethanol |
1. Unified Image Syntax (SMILES & InChI)
Both formulas share the exact same 4-argument signature (input, [background], [style], [transform]) and run locally offline:
| Input Column | Modern Excel (365 / 2024+) | Legacy Excel (2016–2021) | Notes |
|---|---|---|---|
| SMILES String | =SMILES2IMG(B2, [bg], [style], [transform]) | =SMILES2IMG.FLOAT(...) | Also auto-detects single-molecule/reaction KET JSON |
IUPAC InChI (InChI=1S/...) | =INCHI2IMG(C2, [bg], [style], [transform]) | =INCHI2IMG.FLOAT(...) | Renders standard PubChem/ChEMBL/NIST InChI strings directly |
2. Build a Multi-Row Structure Table
- Enter compound names in column
Aand SMILES strings in columnB(e.g., AspirinCC(=O)Oc1ccccc1C(=O)O). - Type
=SMILES2IMG(B2)(or=INCHI2IMG(B2)) inC2and press Enter (on Excel 2016–2021, append.FLOAT). - Set row height (
62–80 ptrecommended) and widen columnC—the structure scales while locking bond aspect ratio and stays locked to its row when filtering or sorting. - Drag the fill handle down to render hundreds of compounds at once.
3. Sketch, Paste & Double-Click to Edit
| Action | How to Do It | Result |
|---|---|---|
| Draw a Molecule | Select a cell ➔ [SMILES] ➔ [Insert / Edit (SMILES)] (or InChI) ➔ sketch in Ketcher ➔ Ctrl + Enter | Writes =SMILES2IMG("...") (or =INCHI2IMG(...)) directly into the cell |
| Paste Structure | Copy SMILES/InChI/KET/Name/CAS text or select a cell ➔ [SMILES] ➔ [Paste Structure] | Writes =SMILES2IMG(...) or =KET2IMG(...) directly; shows a confirmation dialog for chemical names or ambiguous short English words |
| In-Place Re-Editing | Double-click any rendered structure cell or .FLOAT picture | Reopens Ketcher 2D with the molecule preloaded (ambiguous plain words are skipped when preloading empty cells) |
Related Guides
- Names, Solvents, CAS — Render
Aspirin,THF,DMSO, or"50-78-2"directly with=NAME2IMG(built-in offline dictionary + 30-day local PubChem cache; invalid CAS check digits rejected locally) - Reaction Schemes (KET) — Store multi-step reactions cleanly inside cells with
=KET2IMG - Styles & Highlights — Customize
[bg],[style]("bw","hl:...","num stereo"), and[transform] - Legacy Excel (.FLOAT) — Cell-anchored shapes for Excel 2016, 2019, and 2021