Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dk dk is offline
external usenet poster
 
Posts: 129
Default Which column in an array of columns

Dear Experts,
What is the formula that would return the current column index within an
array of columns?
I appologize if my terms are incorrect.
Example: In an array or range of columns from C:F, the formula in column D
would = 2, Column F = 4.
Thanks.
DK


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Which column in an array of columns

=COLUMN()-COLUMN($C$1)+1

HTH,
Bernie
MS Excel MVP


"DK" wrote in message ...
Dear Experts,
What is the formula that would return the current column index within an array of columns?
I appologize if my terms are incorrect.
Example: In an array or range of columns from C:F, the formula in column D would = 2, Column F =
4.
Thanks.
DK



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dk dk is offline
external usenet poster
 
Posts: 129
Default Which column in an array of columns

Thanks Bernie,
I see that I only need to identify the starting column and not the range of
columns.
Thanks again.
DK

"Bernie Deitrick" <deitbe @ consumer dot org wrote in message
...
=COLUMN()-COLUMN($C$1)+1

HTH,
Bernie
MS Excel MVP


"DK" wrote in message
...
Dear Experts,
What is the formula that would return the current column index within an
array of columns?
I appologize if my terms are incorrect.
Example: In an array or range of columns from C:F, the formula in column
D would = 2, Column F = 4.
Thanks.
DK





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 do I name rows and columns in an array Gulfman100 New Users to Excel 1 January 5th 08 01:50 AM
How to manipulate an 2D Array into a Column Array? Joe Excel Discussion (Misc queries) 3 April 16th 07 06:30 PM
Finding a number in a column out of an array in another column cirena Excel Discussion (Misc queries) 3 April 4th 07 06:30 PM
Array? Put values from random columns into 4 willwonka Excel Worksheet Functions 4 March 16th 07 05:20 PM
UDF to sort array with multiple columns flygis Excel Worksheet Functions 0 June 2nd 06 06:00 PM


All times are GMT +1. The time now is 08:13 PM.

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"