Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Create a list from many columns

I have 20 columns of data named week 1, week 2, week 3 etc for 12,000 rows
however not every week has a value although each row has at least 1 value in
one of the 20 columns.

I want to create a list in a single column, column 21, based on the most
recent column with a value for each row i.e. if week 20 has a value, I want
that value in my list but if it's blank I want to look in week 19 and take
that value but if it's also blank look in week 18 and take that value and so
on.

I don't know how to do this withoun lots of copying and pasting. I'd
appreciate if anyone can help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Create a list from many columns

Alan,

Assuming your weeks are in columns A to T put this u=in column U and drag down

=LOOKUP(6.022*10^23,A2:T2)

Mike

"Alan B" wrote:

I have 20 columns of data named week 1, week 2, week 3 etc for 12,000 rows
however not every week has a value although each row has at least 1 value in
one of the 20 columns.

I want to create a list in a single column, column 21, based on the most
recent column with a value for each row i.e. if week 20 has a value, I want
that value in my list but if it's blank I want to look in week 19 and take
that value but if it's also blank look in week 18 and take that value and so
on.

I don't know how to do this withoun lots of copying and pasting. I'd
appreciate if anyone can help.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Create a list from many columns

I seem to have had a brainstorm that should rwad

Assuming your weeks are in columns A to T put this in column U and drag down

=LOOKUP(6.022*10^23,A2:T2)

Mike

"Mike H" wrote:

Alan,

Assuming your weeks are in columns A to T put this u=in column U and drag down

=LOOKUP(6.022*10^23,A2:T2)

Mike

"Alan B" wrote:

I have 20 columns of data named week 1, week 2, week 3 etc for 12,000 rows
however not every week has a value although each row has at least 1 value in
one of the 20 columns.

I want to create a list in a single column, column 21, based on the most
recent column with a value for each row i.e. if week 20 has a value, I want
that value in my list but if it's blank I want to look in week 19 and take
that value but if it's also blank look in week 18 and take that value and so
on.

I don't know how to do this withoun lots of copying and pasting. I'd
appreciate if anyone can 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 do I create a list of unique values from 2 columns of data FrozenRope Excel Worksheet Functions 2 June 7th 08 11:57 AM
How to create adress list so can mail merge and create labels? adecocq Excel Discussion (Misc queries) 2 October 25th 06 12:32 AM
Compare 2 columns, and create a list of items that are in both lists ruby2sdy Excel Worksheet Functions 3 October 8th 05 11:04 AM
How do I create multiple columns from a one-column list in Excel? Melissa Excel Worksheet Functions 5 October 5th 05 03:32 AM
Create stacked columns chart but with 2 columns for each x axis? PSM Charts and Charting in Excel 2 May 7th 05 03:56 PM


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