Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Need a formula that will plot all cells between other cells of a certain number

I am having trouble created a certain formula I need. Here is my
attempt at an explanation:

I have one very large column of values, where each value is either a
2,3, or 5. I want to extract in another column all of the 2s that are
preceded by a 3 before they are preceded by a 5, as well as the cell
with the 3 in it That is, if there is 2 value in cell BB193, and BB
190:BB192 are all 2s also, but BB189 is a 3, then I want all of those
values in a new column. However, if BB191 is a 5 instead of a 2, then
I do not want values BB193:BB191 (BB190 and BB189 will depend on
whether a 3 or a 5 precedes them first). I should note that there are
many 2s 3s and 5s interspersed throughout my datasheet in a seemingly
random fashion.

Any ideas? Please let me know if I need to clarify.

Thanks,
Hos

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Need a formula that will plot all cells between other cells of a c

I think you will need VBA to do this. Are you saying you want all 2s which
are delimited by 3 and 5 copied (along with the 3).

Are all the patterns below valid?

2
2
3 < copy
2 <copy
2 <copy
3 <copy
2 <copy
2 <copy
5
2
2
3 <copy
2<copy
3<copy
2<copy
2<copy
5
2

"Hosley" wrote:

I am having trouble created a certain formula I need. Here is my
attempt at an explanation:

I have one very large column of values, where each value is either a
2,3, or 5. I want to extract in another column all of the 2s that are
preceded by a 3 before they are preceded by a 5, as well as the cell
with the 3 in it That is, if there is 2 value in cell BB193, and BB
190:BB192 are all 2s also, but BB189 is a 3, then I want all of those
values in a new column. However, if BB191 is a 5 instead of a 2, then
I do not want values BB193:BB191 (BB190 and BB189 will depend on
whether a 3 or a 5 precedes them first). I should note that there are
many 2s 3s and 5s interspersed throughout my datasheet in a seemingly
random fashion.

Any ideas? Please let me know if I need to clarify.

Thanks,
Hos


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Need a formula that will plot all cells between other cells of a c

On Apr 28, 4:12 am, Toppers wrote:
I think you will need VBA to do this. Are you saying you want all 2s which
are delimited by 3 and 5 copied (along with the 3).

Are all the patterns below valid?

2
2
3 < copy
2 <copy
2 <copy
3 <copy
2 <copy
2 <copy
5
2
2
3 <copy
2<copy
3<copy
2<copy
2<copy
5
2

"Hosley" wrote:
I am having trouble created a certain formula I need. Here is my
attempt at an explanation:


I have one very large column of values, where each value is either a
2,3, or 5. I want to extract in another column all of the 2s that are
preceded by a 3 before they are preceded by a 5, as well as the cell
with the 3 in it That is, if there is 2 value in cell BB193, and BB
190:BB192 are all 2s also, but BB189 is a 3, then I want all of those
values in a new column. However, if BB191 is a 5 instead of a 2, then
I do not want values BB193:BB191 (BB190 and BB189 will depend on
whether a 3 or a 5 precedes them first). I should note that there are
many 2s 3s and 5s interspersed throughout my datasheet in a seemingly
random fashion.


Any ideas? Please let me know if I need to clarify.


Thanks,
Hos


Yes, that's right. I actually found another software program to do
what I need, but I appreciate your help. I think really need to learn
Visual Basic if I'm going to get any better with Excel.

Thanks again,
Hos

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 Multiply different cells by one number as a formula? secarter New Users to Excel 2 March 9th 06 03:41 AM
Formula for counting number of cells Pawan Excel Discussion (Misc queries) 2 February 22nd 06 05:20 AM
What is the Formula to find the Media of a number of cells? formula to find the media between cells Excel Worksheet Functions 2 December 19th 05 05:35 PM
formula in excel to skip cells having - number and add only + anthonylaw Excel Worksheet Functions 3 October 25th 05 06:46 PM
formula(excel) to skip cells having - number and add + one anthonylaw Excel Worksheet Functions 1 October 25th 05 06:11 PM


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