Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Returning a column reference for a data point

Hi

I have a spreadsheet with unique account numbers in column A, and then
across the top, from Column B onwards, I have listed the next 72 months (Jun
09, Jul 09, etc).

In each row (ie for each account), a forumula in each cell (under each month
for each account) either returns a positive number or 0.

I need to identify the month each account has the positive number (it is the
maturity value), and have the maturity month listed next to the account
number.

I have no idea where to start. Can anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Returning a column reference for a data point

Insert a new col B. Your 72 col headers are now in C1:BV1
Put in B2, normal ENTER:
=INDEX(C$1:BV$1,MATCH(TRUE,INDEX(C2:BV20,),0))
Copy down to return the required results

Success? Celebrate it, click the YES button below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"Totteridge Ram" wrote:
I have a spreadsheet with unique account numbers in column A, and then
across the top, from Column B onwards, I have listed the next 72 months (Jun
09, Jul 09, etc).

In each row (ie for each account), a forumula in each cell (under each month
for each account) either returns a positive number or 0.

I need to identify the month each account has the positive number (it is the
maturity value), and have the maturity month listed next to the account
number.

I have no idea where to start. Can anyone help?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Returning a column reference for a data point

Try the below formula. Please note that this is an array formula. Within the
cell in edit mode (F2) paste this formula and press Ctrl+Shift+Enter to apply
this formula. If successful in 'Formula Bar' you can notice the curly braces
at both ends like "{=<formula}"

Replace 123 with your unique account number or reference it to a cell. For
testing I have used 123. Tere are 4 occurance of 123. The formula will match
the row with the account number; then find the first value which is more than
0 in that row and then return the month name from the 1st row..Try and
feedback

=INDEX(1:1,MIN(IF(INDIRECT("B" & MATCH(123,A:A,0)&":BU" &
MATCH(123,A:A,0))0,COLUMN(INDIRECT("B" & MATCH(123,A:A,0)&":BU" &
MATCH(123,A:A,0))))))

If this post helps click Yes
---------------
Jacob Skaria


"Totteridge Ram" wrote:

Hi

I have a spreadsheet with unique account numbers in column A, and then
across the top, from Column B onwards, I have listed the next 72 months (Jun
09, Jul 09, etc).

In each row (ie for each account), a forumula in each cell (under each month
for each account) either returns a positive number or 0.

I need to identify the month each account has the positive number (it is the
maturity value), and have the maturity month listed next to the account
number.

I have no idea where to start. Can anyone help?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Returning a column reference for a data point

Thank you so much Max & Jacob - both work. This is fantastic - I had visions
of typing in maturity month manually!!

Brilliant.

"Jacob Skaria" wrote:

Try the below formula. Please note that this is an array formula. Within the
cell in edit mode (F2) paste this formula and press Ctrl+Shift+Enter to apply
this formula. If successful in 'Formula Bar' you can notice the curly braces
at both ends like "{=<formula}"

Replace 123 with your unique account number or reference it to a cell. For
testing I have used 123. Tere are 4 occurance of 123. The formula will match
the row with the account number; then find the first value which is more than
0 in that row and then return the month name from the 1st row..Try and
feedback

=INDEX(1:1,MIN(IF(INDIRECT("B" & MATCH(123,A:A,0)&":BU" &
MATCH(123,A:A,0))0,COLUMN(INDIRECT("B" & MATCH(123,A:A,0)&":BU" &
MATCH(123,A:A,0))))))

If this post helps click Yes
---------------
Jacob Skaria


"Totteridge Ram" wrote:

Hi

I have a spreadsheet with unique account numbers in column A, and then
across the top, from Column B onwards, I have listed the next 72 months (Jun
09, Jul 09, etc).

In each row (ie for each account), a forumula in each cell (under each month
for each account) either returns a positive number or 0.

I need to identify the month each account has the positive number (it is the
maturity value), and have the maturity month listed next to the account
number.

I have no idea where to start. Can anyone help?

  #5   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Returning a column reference for a data point

Delighted to hear. You're welcome.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:25,000 Files:300 Subscribers:70
xdemechanik
---
"Totteridge Ram" wrote in message
...
Thank you so much Max & Jacob - both work. This is fantastic - I had
visions
of typing in maturity month manually!!

Brilliant.



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
cluster column chart with data point labels robotman Charts and Charting in Excel 2 June 12th 07 09:51 PM
Stacked column chart wit more than one column in a data point Hari Charts and Charting in Excel 2 February 15th 07 06:20 AM
Looking up data in a column, then returning values of respective row TC Excel Discussion (Misc queries) 4 March 22nd 06 02:47 PM
Excel should let you graph every n-th data point in a column warrenrob50 Charts and Charting in Excel 3 March 3rd 06 08:42 PM
How do I delete data in a column from a certain point on? carolineeg Excel Worksheet Functions 0 May 19th 05 03:20 PM


All times are GMT +1. The time now is 05:11 PM.

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

About Us

"It's about Microsoft Excel"