Hello People, help
I think I need to do a lookup for the following problem. I have inserted link to the sample table (image of the table) here:
https://docs.google.com/leaf?id=0BwU...iYTFi&hl=en_US
On my current table , column A is the truck numbers and column B is days of the week on which the truck leaves the warehouse.
There are 7 characters representing days of the week on which the truck leaves. First digit is Sunday and 7th digit is Saturday.
"Y" means the truck moves on that day, "N" means the truck doesn not move on that day.
According to the table column B3 indicates that the truck only leaves on days 3 and 4 of the week (these are Tuesday and Wednesday). It does not move on days with "N".
"N" means the truck does not move on that day of the week. Column B4 indicates that the truck KG776 does not move on Sunday, Monday and Saturday. BUT the truck moves on Tuesday, Wednesday, Thursday and Friday.
I have over 20000 records. I need to have a formula (or macro) that will convert column B to look like column C.
Thank you
Last edited by NBVC; 09-12-2011 at 08:35 PM.
Can you please attach file directly:
To attach a file to your post, you need to be using the main 'New Post' or 'New Thread' page and not 'Quick Reply'.
To use the main 'New Post' page, click the 'Post Reply' button in the relevant thread.
On this page, below the message box, you will find a button labelled 'Manage Attachments'.
Clicking this button will open a new window for uploading attachments.
You can upload an attachment either from your computer or from another URL by using the appropriate box on this page.
Alternatively you can click the Attachment Icon to open this page.
To upload a file from your computer, click the 'Browse' button and locate the file.
To upload a file from another URL, enter the full URL for the file in the second box on this page.
Once you have completed one of the boxes, click 'Upload'.
Once the upload is completed the file name will appear below the input boxes in this window.
You can then close the window to return to the new post screen.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Sorry, here is the attachment.
Last edited by NBVC; 09-12-2011 at 02:13 PM.
The easiest way is to concatenated some simple IF statements....
copied down=IF(MID(B2,1,1)="Y",1,"")&IF(MID(B2,2,1)="Y",2,"")&IF(MID(B2,3,1)="Y",3,"")&IF(MID(B2,4,1)="Y",4,"")&IF(MID(B2,5,1)="Y",5,"")&IF(MID(B2,6,1)="Y",6,"")&IF(MID(B2,7,1)="Y",7,"")
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks