Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
sonar
 
Posts: n/a
Default 1-7 Columns, to find last column with figure in


Hi

I have prices in Mo, Tu, We, Th, Fr, Sa, Su Columns.

These figures arrive from information inserted in different sheets
called Mo, Tu, We, Th, Fr, Sa, Su.

What I would like to know is, what formula would be best to use to
check which column had a price in last. Say Mo R10, Tu R12, We R13 Tu,
Fr, Sa, Su, and it will give the answer R13 (which is Wednesday)

Can anyone recommend something?

Thanks
Sonar


--
sonar
------------------------------------------------------------------------
sonar's Profile: http://www.excelforum.com/member.php...fo&userid=8424
View this thread: http://www.excelforum.com/showthread...hreadid=400942

  #2   Report Post  
bpeltzer
 
Posts: n/a
Default

Can you add another row for some intermediate calculations?

If your prices are coming back in A2:G2, then add a formula in A3:
=count($A2:A2). Autofill that formula into B3:G3. In H3,
=index(A2:G2,match(G3,A3:G3,false))

The logic: for each day of the week, you'll have a cumulative count in row
3 of the number of days with prices. The match function will pick up which
day is the first where the cumulative count matches the total count for the
week. The index finds the price from that day.

"sonar" wrote:


Hi

I have prices in Mo, Tu, We, Th, Fr, Sa, Su Columns.

These figures arrive from information inserted in different sheets
called Mo, Tu, We, Th, Fr, Sa, Su.

What I would like to know is, what formula would be best to use to
check which column had a price in last. Say Mo R10, Tu R12, We R13 Tu,
Fr, Sa, Su, and it will give the answer R13 (which is Wednesday)

Can anyone recommend something?

Thanks
Sonar


--
sonar
------------------------------------------------------------------------
sonar's Profile: http://www.excelforum.com/member.php...fo&userid=8424
View this thread: http://www.excelforum.com/showthread...hreadid=400942


  #3   Report Post  
Flintstone
 
Posts: n/a
Default


Im not exactly sure what you are asking. If cells A1 through G1
represent the days of the week (Mon - Sun), place this in cell H1 and
type a day number in cell I1.

=VALUE(INDIRECT(CHOOSE(I1,"A","B","C","D","E","F", "G")&"1"))

Matt


--
Flintstone
------------------------------------------------------------------------
Flintstone's Profile: http://www.excelforum.com/member.php...o&userid=15310
View this thread: http://www.excelforum.com/showthread...hreadid=400942

  #4   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi

If your headings are in A1:G1 and you have data in rows 2 onward, then one
way would be
in cell H2 enter
=ADDRESS(ROW(),COUNTA(B2:G2)+1)
This will give the cell address of the latest column to be populated.
Drag down column H to give the result for other rows.
The above works fine provided there are no blank cells in the row e.g. you
never have data in the Friday column, when the Thursday column is blank.

If there are likely to be blanks, then you would need to change the formula
to

=ADDRESS(2,MATCH(9.99999999999999E+307,A2:G2,1))
--
Regards

Roger Govier


"sonar" wrote in
message ...

Hi

I have prices in Mo, Tu, We, Th, Fr, Sa, Su Columns.

These figures arrive from information inserted in different sheets
called Mo, Tu, We, Th, Fr, Sa, Su.

What I would like to know is, what formula would be best to use to
check which column had a price in last. Say Mo R10, Tu R12, We R13 Tu,
Fr, Sa, Su, and it will give the answer R13 (which is Wednesday)

Can anyone recommend something?

Thanks
Sonar


--
sonar
------------------------------------------------------------------------
sonar's Profile:
http://www.excelforum.com/member.php...fo&userid=8424
View this thread: http://www.excelforum.com/showthread...hreadid=400942



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
match and count words David Excel Worksheet Functions 5 July 4th 05 02:24 AM
How do I incorporate 2 columns into 1 column mayhewvb Excel Discussion (Misc queries) 3 June 16th 05 03:10 AM
Macros for find and replace and then joining columns BobbyCochran Excel Discussion (Misc queries) 0 May 20th 05 01:06 AM
print 3 column range in six columns dawgpilot Excel Discussion (Misc queries) 3 April 28th 05 10:53 PM
How do I find a column entry closest to a particular value feman007 Excel Worksheet Functions 2 March 9th 05 03:48 PM


All times are GMT +1. The time now is 02:00 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"