#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Find Filled Cell

I have a selection columns A through D. I need some way in excel that
will identify which column has been filled since only one column per
row will be filled. Once I get the column that is filled I want to
look up a cell in that column for calculation purposes. For example if
column B is filled, I want to refer to the cell number (B163) of that
column.

Thank you for your help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Find Filled Cell

This can be shortened but I leave as is so you see what is happening.
Sub findfilledcolumn()
mr = ActiveCell.Row
mc = Cells(mr, 1).End(xlToRight).Column
MsgBox mc
celltouse = Cells(163, mc)
MsgBox celltouse
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"PrinceAli" wrote in message
...
I have a selection columns A through D. I need some way in excel that
will identify which column has been filled since only one column per
row will be filled. Once I get the column that is filled I want to
look up a cell in that column for calculation purposes. For example if
column B is filled, I want to refer to the cell number (B163) of that
column.

Thank you for your help.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find percentage of filled cells in one section Kalahari Excel Discussion (Misc queries) 3 January 22nd 18 08:08 PM
Find the number of the lowest filled row Roberto Villa Real Excel Worksheet Functions 3 May 2nd 08 03:26 PM
Filled cells dont appear as filled SMILLS Excel Discussion (Misc queries) 6 October 18th 07 05:28 PM
Set cell to record date when adjacent cell is filled AND NOT RESET The new guy Excel Worksheet Functions 3 February 26th 07 06:11 PM
How to find last filled in cell in a column? Cat Chowdy Excel Worksheet Functions 5 August 2nd 06 01:46 PM


All times are GMT +1. The time now is 04:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"