MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Mar 30th, 2004, 10:48 AM   #1
Hu
 
Join Date: Apr 2003
Location: Latvia
Posts: 56
Default splitting cell cointents (one more time)

Hi!

I have following problem, which i would be pleased to have help with. i have a cell containing values separated by ";". i would like to have those seperate values to be indexed somehow (preferaby using a macro) so that i could use appropriate one for the further calculations.
let's suppose A1 contains following value "a;b;c;d;e" (except for ""). i would like to be able to reference to each one of the elements for use in Select Case statement. is that possible?


please can anyone give me assistance on this one?
please, please, please, please, pleeeeease...


respect
hu

ps i have Excel 2003
Hu is offline   Reply With Quote
Old Mar 30th, 2004, 12:06 PM   #2
onlyadrafter
 
Join Date: Aug 2003
Location: England
Posts: 4,584
Default Re: splitting cell cointents (one more time)

Hello,

Without understanding what you are going to do with the data, could you not use DATA --> TEXT TO COLUMNS and then use the cell contents?
__________________
-------------------------
Hope this is helpful.
-------------------------
only a drafter,
but broadening my Excel knowledge.
onlyadrafter is offline   Reply With Quote
Old Mar 30th, 2004, 12:18 PM   #3
Hu
 
Join Date: Apr 2003
Location: Latvia
Posts: 56
Default Re: splitting cell cointents (one more time)

Hi!

i am about to match/compare the data with a constant value.
ok. let's put it this way - A1 contains following data "15.05.;15.11.", which basically in this case means May 15 and November 15 (the dates can be as many as 12). What i need is take first portion of data (15.05.) then add a year (i. e. 2004. however, no trouble with that) and campare with one of the dates i input (weather it is manually or other way does not matter). if entered date ir greater than May 15 then the same comparison should be done with the NEXT value (in this case 15.11.) and so on...
i hope this is clear. if want any additional info please inform me.

and thank you very much for your help!!!
respect
hu
Hu is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On

Forum Jump


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


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.