excelnoober
New Member
- Joined
- Sep 20, 2014
- Messages
- 3
Well I just signed in to ask the following question as I have spent a day thinking and trying things with no results (no superuser experience!)
I have two datasets:
The first one, A has a start and an end and 0/1 values for values A,B,C,D (note, for each row there can be only one 1 and all others are always 0). Intervals at A dataset are pretty much random and can intersect between them or have large gaps.
The second one B, starts from 0 (or sometimes from a positive value) and each record finishes right where the next starts. The problem is to fill with "1" the yellow area as in the posted photo that it was filled manually, meaning each row interval in dataset A will fill the corresponding row with 1.
For example the first row "20 to 40" is contained in the "15,8 to 25,83" and "25,83 to 43,69" so "1" has to be filled in the corresponding value 2 column
I have a corresponding formula to correspond a single A dataset row but I have to do this around 3000 times! If anyone had an idea how to do this would be extremely helpful. If VBA solutions would be avoided would be great, as I only know that you could do magic things with this stuff but I have zero knowledge about it...
Thanks for the time spent reading this post!
I have two datasets:
The first one, A has a start and an end and 0/1 values for values A,B,C,D (note, for each row there can be only one 1 and all others are always 0). Intervals at A dataset are pretty much random and can intersect between them or have large gaps.
The second one B, starts from 0 (or sometimes from a positive value) and each record finishes right where the next starts. The problem is to fill with "1" the yellow area as in the posted photo that it was filled manually, meaning each row interval in dataset A will fill the corresponding row with 1.
For example the first row "20 to 40" is contained in the "15,8 to 25,83" and "25,83 to 43,69" so "1" has to be filled in the corresponding value 2 column

I have a corresponding formula to correspond a single A dataset row but I have to do this around 3000 times! If anyone had an idea how to do this would be extremely helpful. If VBA solutions would be avoided would be great, as I only know that you could do magic things with this stuff but I have zero knowledge about it...
Thanks for the time spent reading this post!