Please note the accepted solution will only work where the cells are next to each other, ie A1, B1 and C1 or at least on the same row or column. It will still work with blank cells between eg A1 to E1 but B1 and D1 are blank.
However, for cells that are dispersed, eg A1, B3 and C5, it will need to be one of the other options.
Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.
What do you intend to do?
Regards