PC Review


Reply
Thread Tools Rate Thread

Create a new column using information from separate columns

 
 
cfmartin76@gmail.com
Guest
Posts: n/a
 
      19th Jul 2006
Hello!

Another question that I posted under Access, I hope this is the right
place to ask this. I have a little bit of a problem, and I wasn't able
to find the solution anywhere.


I have column A "Title" that is linked with column B "Day of the week".
Each title can have 1, 2 or 3 days of the week (which will then be
column C, D, etc). It looks like this:

TITLE DAY1 DAY2 DAY3
Math Mon Tue
History Tue Fri Mon
English Wed Mon

How can I create a new column that lists all the "titles" that appear
on Monday and a separate column for the ones that appear on Tuesday?
(the names of the new columns would be "Monday", "Tuesday", etc) If a
title has more than 2 days I want that title to appear on the columns
for both days.

It will look like this:
MON TUE WED THU FRI
Math Math English History
History History
English


Is there a macro for this?


Thanks!

 
Reply With Quote
 
 
 
 
Bobocat
Guest
Posts: n/a
 
      19th Jul 2006
Suppose at A1, you type
TITLE DAY1 DAY2 DAY3
Math Mon Tue
History Tue Fri Mon
English Wed Mon

at row 8, type
MON TUE WED THU FRI
at A9 enter the formula like this:

=IF(ISERROR(MATCH(A$8,$B2:$D2,0))," ",INDIRECT(ADDRESS(ROW(A2),1)))
then copy to rest the cells

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello!
>
> Another question that I posted under Access, I hope this is the right
> place to ask this. I have a little bit of a problem, and I wasn't able
> to find the solution anywhere.
>
>
> I have column A "Title" that is linked with column B "Day of the week".
> Each title can have 1, 2 or 3 days of the week (which will then be
> column C, D, etc). It looks like this:
>
> TITLE DAY1 DAY2 DAY3
> Math Mon Tue
> History Tue Fri Mon
> English Wed Mon
>
> How can I create a new column that lists all the "titles" that appear
> on Monday and a separate column for the ones that appear on Tuesday?
> (the names of the new columns would be "Monday", "Tuesday", etc) If a
> title has more than 2 days I want that title to appear on the columns
> for both days.
>
> It will look like this:
> MON TUE WED THU FRI
> Math Math English History
> History History
> English
>
>
> Is there a macro for this?
>
>
> Thanks!
>



 
Reply With Quote
 
cfmartin76@gmail.com
Guest
Posts: n/a
 
      20th Jul 2006
This helps, but it brings one more issue. How can I delete the cells
that are blank so instead of:
Mon Tue Wed Thu Fri
math math
history history history
english english

I'll see this:


Mon Tue Wed Thu Fri
math math english history
history history
english



Bobocat wrote:
> Suppose at A1, you type
> TITLE DAY1 DAY2 DAY3
> Math Mon Tue
> History Tue Fri Mon
> English Wed Mon
>
> at row 8, type
> MON TUE WED THU FRI
> at A9 enter the formula like this:
>
> =IF(ISERROR(MATCH(A$8,$B2:$D2,0))," ",INDIRECT(ADDRESS(ROW(A2),1)))
> then copy to rest the cells
>
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hello!
> >
> > Another question that I posted under Access, I hope this is the right
> > place to ask this. I have a little bit of a problem, and I wasn't able
> > to find the solution anywhere.
> >
> >
> > I have column A "Title" that is linked with column B "Day of the week".
> > Each title can have 1, 2 or 3 days of the week (which will then be
> > column C, D, etc). It looks like this:
> >
> > TITLE DAY1 DAY2 DAY3
> > Math Mon Tue
> > History Tue Fri Mon
> > English Wed Mon
> >
> > How can I create a new column that lists all the "titles" that appear
> > on Monday and a separate column for the ones that appear on Tuesday?
> > (the names of the new columns would be "Monday", "Tuesday", etc) If a
> > title has more than 2 days I want that title to appear on the columns
> > for both days.
> >
> > It will look like this:
> > MON TUE WED THU FRI
> > Math Math English History
> > History History
> > English
> >
> >
> > Is there a macro for this?
> >
> >
> > Thanks!
> >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I separate last, first names from 1 column into 2 columns? SDoc Microsoft Excel Misc 3 26th Jun 2009 04:34 PM
Re: Separate data in a column into new columns Don Guillett Microsoft Excel Misc 0 11th Apr 2008 02:59 PM
Create a new column using information from separate columns cfmartin76@gmail.com Microsoft Access Macros 1 19th Jul 2006 10:01 PM
Create column of common items from information in 4 columns Steve Microsoft Excel Discussion 2 25th Apr 2006 02:41 PM
Re: Create two separate columns Steve Easton Microsoft Frontpage 0 29th Sep 2003 06:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:06 AM.