Names, Solvents, CAS Images
Render 2D chemical structures directly from English chemical names, common lab solvent acronyms (THF, DMF, DMSO, DCM), reagents, or CAS Registry Numbers ("50-78-2") via =NAME2IMG—combining a built-in offline dictionary with a 30-day local PubChem cache—without looking up a SMILES string first.
| 1 | AName / CAS | BFormula | Description | Result | Copy |
|---|---|---|---|---|---|
| 2 | Aspirin | =NAME2IMG(A2) | Resolve common English drug/reagent name | 2D Aspirin | |
| 3 | 50-78-2 | =NAME2IMG(A3) | Resolve CAS Registry Number cleanly | 2D Aspirin | |
| 4 | =NAME2IMG("THF", "", "bw") | Standalone solvent acronym in ACS B&W | B&W THF |
1. Built-In Offline Dictionary + Local PubChem Cache
=NAME2IMG(name_or_cas, [background], [style], [transform]) (and =NAME2IMG.FLOAT on Excel 2016–2021) checks an internal offline chemical dictionary first. For any compound outside the built-in catalog, func_SMILES2IMG performs a one-time PubChem lookup and caches valid resolutions on disk for 30 days (%LOCALAPPDATA%\Smiles2Img) so future workbooks open offline without re-querying. Numeric CAS strings also validate check digits locally—invalid CAS numbers (such as "50-78-3") return #N/A directly without a network request.
| Category | Built-In Offline Entries (Examples) | Excel Formula Example |
|---|---|---|
| Lab Solvents | THF (109-99-9), DMSO (67-68-5), DMF (68-12-2), DCM (75-09-2), Acetonitrile (75-05-8), Ethyl Acetate (141-78-6), Acetone, Ethanol, Methanol, Pyridine, Toluene, Benzene, Chloroform, Diethyl Ether, Hexane, Cyclohexane | =NAME2IMG("THF") |
| Extended Reagents (PubChem ➔ 30-day cache) | HATU, DIPEA, DMAP, EDCI, HOBt, mCPBA, TFA (cached locally 30 days after first lookup) | =NAME2IMG("HATU") |
| Pharmaceuticals | Aspirin (50-78-2), Caffeine (58-08-2), Acetaminophen (Paracetamol, 103-90-2), Ibuprofen (15687-27-1), Naproxen, Penicillin G, Amoxicillin, Artemisinin, Paclitaxel | =NAME2IMG("50-78-2") |
| Biomolecules & Amino Acids | Glucose, Vitamin C, Citric Acid, Glycine, Alanine, Dopamine, Serotonin, Epinephrine, Cholesterol | =NAME2IMG("Caffeine") |
Works with Every Shared [bg] and [style] Keyword
=NAME2IMG passes [background], [style], and [transform] into the exact same renderer as =SMILES2IMG:
- Journal monochrome:
=NAME2IMG(A2, "", "bw") - Dark Mode white ink:
=NAME2IMG(A2, "#1E293B", "white") - Highlighting carboxylic acids:
=NAME2IMG(A2, "", "hl:C(=O)[OH]")
See Styles & Highlights for the complete token table.
2. Pair =NAME2IMG with =NAME2SMILES & Stoichiometry Columns
In organic synthesis ELNs and reagent inventory sheets, type the chemical name or CAS number once in column A and auto-populate structure, SMILES, and MW together:
| Col A (Input Name / CAS) | Col B (=NAME2SMILES(A2)) | Col C (=NAME2IMG(A2)) | Col D (=SMILES2MW(B2)) |
|---|---|---|---|
Salicylic Acid | O=C(O)c1ccccc1O | (2D structure) | 138.12 |
50-78-2 (Aspirin) | CC(=O)Oc1ccccc1C(=O)O | (2D structure) | 180.16 |
DIPEA (PubChem ➔ 30d cache) | CCN(C(C)C)C(C)C | (2D structure) | 129.24 |
Related Guides
- SMILES, InChI — Unified 4-argument architecture and multi-row SMILES/InChI tables
- Styles & Highlights — Customize colors, ACS B&W, SMARTS highlighting, and rotation
- Identifier Conversion — Convert Names & CAS # to canonical SMILES (
=NAME2SMILES) andInChIKey(=SMILES2INCHIKEY)