์ƒ์„ธ ์ปจํ…์ธ 

๋ณธ๋ฌธ ์ œ๋ชฉ

Excel Function Tip ๐Ÿฏ | Mastering the CELL Function to Extract Cell Info! ๐Ÿ”

Excel

by Youngam 2025. 7. 30. 22:53

๋ณธ๋ฌธ

728x90
 

Hey everyone ๐Ÿ™‹‍โ™€๏ธ
Today, I’m introducing a function that may seem unfamiliar,
but it’s incredibly useful for automation and debugging in real-world Excel tasks:
the CELL function! ๐Ÿ˜Ž


โœ… What is the CELL function?

CELL helps you:
๐Ÿ‘‰ Extract metadata or properties of a cell — like its address, row, column, format, file name, and more.

It’s not for retrieving “data,” but rather for getting info about the cell itself!


๐Ÿ“ Basic Syntax

 
=CELL(info_type, [reference])
  • info_type: The type of information to return (e.g., "address", "row", "filename")
  • [reference]: The cell you want to inspect (if omitted, it uses the current cell)

Example 1) Get the address of a cell ๐Ÿงญ

 
=CELL("address", A5)

๐Ÿ‘‰ Returns: $A$5

Gives you the absolute reference of cell A5 as text.

 

 

 


Example 2) Get the current row number ๐Ÿ”ข

 
=CELL("row")

๐Ÿ‘‰ Returns the row number of the cell where the formula is written.
(If this is in B7, the result is 7)

You can also get the column number with:

 
=CELL("col", C3) → Result: 3

 

 

 


Example 3) Get full file path and sheet name ๐Ÿ“„

 
=CELL("filename")

๐Ÿ‘‰ Example result:
C:\Users\Me\Documents\[Workbook.xlsx]Sheet1

 

 

 

 

โ€ป Note: this only works after the file is saved!

๐Ÿ’ก Want just the sheet name? Try this formula:

 
=RIGHT(CELL("filename"),LEN(CELL("filename"))-FIND("]",CELL("filename")))

๐Ÿ‘‰ This extracts only the sheet name from the full file path.

 

 


Example 4) Check the cell format ๐ŸŽจ

 
=CELL("format", A1)

This returns format codes like:

  • "G": General
  • "F0": Number with no decimals
  • "F2": Number with 2 decimal places
  • "D4": Date format (e.g., YYYY/MM/DD)

โ€ป Advanced use — helpful for debugging or conditional formatting triggers!

 

 

 


 

๐Ÿ“Œ Common info_type values for CELL

CodeDescription
"address" Cell address (e.g., $B$3)
"row" Row number
"col" Column number
"filename" Full path + file name + sheet
"contents" Cell contents (the value)
"format" Format code
 

โœ… Summary

The CELL function is perfect for:
โœ” Getting row/column positions
โœ” Showing file name or sheet name dynamically
โœ” Document metadata automation
โœ” Conditional formatting / validation / debugging

You might not use it every day,
but when you do need cell-level info, it’s a must-have in your toolbox ๐Ÿ˜Ž

Next time I’ll introduce related functions like INFO, TYPE, and ISBLANK.

Until then, happy Excel-ing! ๐Ÿ’ป๐Ÿ’š

 

728x90

๊ด€๋ จ๊ธ€ ๋”๋ณด๊ธฐ