Finding Sequences And Highlighting Them In Different Ways

Mar 18, 2009

how to go about finding sequences and highlighting them.

here's an example list:

7600
7601
7602
7603
7604
7608
7609
7610
7611

now i need to find 3 things in this list.

1) how many 'batches' of sequences there are in this list. The numbers 7600 to 7604 are a consecutive sequence of five numbers followed by another sequence from 7608 to 7611. that makes two sequences. i need a formula for one cell that would specify how many sequences there are in a given list (in this case they're two sequences in this list).

2) is there any formula that can allow me to see each sequence highlighted in a different color (or any way to differentiate the sequences so i can copy paste them easily?). Pretty sure i'd have to use conditional formating on the entire list to do so but am clueless as to the implementation.

3) a formula for a single cell that can state the largest sequence in the list. in the list above the largest seuqnce is 5 numbers so that would be the value i'm looking for.

View 9 Replies


ADVERTISEMENT

Finding And Highlighting Duplicate Names

Jun 9, 2009

I have two columns that is use to record last name first name. I need a macro that will find matching names in the columns. i have found some examples for searching one column but have not had any luck finding someway to do 2 columns. in the example below i need it to find and highlight The names Smith John.

View 3 Replies View Related

Finding Prime Numbers In A Range And Highlighting It

Oct 28, 2013

How can I find prime numbers in a range and highlight it if a number in a cell is a prime.

View 9 Replies View Related

Different Ways To Get Change In $$

Apr 23, 2013

Michelle went to the store with a $5 bill. She spent $2.70. The currency denominations are restricted to the following: Notes $2 and $1, and coins 50 cents, 20 cents and 10 cents.

(a) List the possible ways she could get her change. How many ways are there?

(b) List the ways that use the least number of coins.

(c) List the ways that use the least number of both notes and coins

View 2 Replies View Related

Ways To Learn Macros

Jan 8, 2010

I've been noticing that most of my questions on here are Macro related. Does anyone know of any good websites, videos, tutorials, or any other good sources to find ways to learn macros?

View 2 Replies View Related

Calculating One Number Three Different Ways?

Oct 15, 2008

I want to do is add up a column of numbers (which will be just 1's & 0's), and have it multiplied by a number. As to what that number would be is contingent upon the number that's being multiplied (if that made any sense). i.e.

If it's 45 or under, I want it multiplied by 5.

If it's 46 through 64, I want it multiplied by 10.

If it's 65 or above, I want it multiplied by 20.

How would I do this? I, for the life of me, can't recall how to write that formula.

View 2 Replies View Related

Highlighting Lowest Score Without Duplicates Highlighting And Counting Player Skins?

Feb 15, 2013

I found this spreadsheet on here and I have been trying to customize it to what I need. I am trying to have scores from skins match highlighted. I want only the minimum score to be highlighted but if there is another duplicate minimum score I don't want it to highlight anything. I also need to find a way to count the skins won by each player and have it off to the side.

For those not familiar with golf a Skin is a game where you try to get the lowest amount of strokes on a specific hole. Ex- 4 people play the hole one. P1 scores 4, P2 gets a 3, P3 and P4 get 6. The skin would go to P2 who has the lowest score on that hole.

Highlight lowest number in each column not highlighting if there are duplicates starting at L6 down to L11 and for each column till AC. And the same for the group just to the right on attached file.

On row 13 and 14 it tells me who won a skin. I want to tally up the total skins won by each player. so if Joe's names shows up twice on R14 I want it to tell me somewhere in the sheet Joe = 2

View 6 Replies View Related

Formula Reference Row To Column, Scroll Ways!

Jan 5, 2009

Easy scroll to down ways, should I copy rows to a column? See the attachment for a more clearance.

View 4 Replies View Related

Largest And Smallest Sequences

Jan 12, 2009

I am using excel 2007 and I need help with the following if anyone would be kind enough. I have a dynamic array that consists of stream of 1's and 0's. I want to be able to find the largest sequence of 1's and the smallest sequence of 1's. So at a point in time the array mite be 111110001101111000 and I want to be able to dertermine the longest contiguous sequence of 1's. But as I say the array is dynamic and so I need to do that after each input.

View 8 Replies View Related

Compare Dna Sequences In Cells

Sep 7, 2009

I am doing research and I have a list of over 100 small dna sequences that I would like to see if there are any similarities between them. I have put them in individual cells but I dont know how or what function to use.

View 11 Replies View Related

Restricted Value Sequences In Rows

Jul 18, 2006

I need to create a warning when specific values sequences are input from a
drop down menu. My example:

I have 31 columns (days in month) and have 25 rows (peoples names) from the
drop down box I have the following values-These are shift designations
(V1,V2,V3,V4, SV1,SV2,SV3,SV4, A1,A2,A3,A4,N,R1,R2,R3,DB,C).

If the selections in cell between B1:AF25 are either SV 1-4 or A 1-4 I want
a warning to appear IF a value of V 1-4, R 1-3, DB or C are attempted to be
put in the immediately following cell.

Example: Cell B3 has A-4 and in cel C3 they attempt to put N, then it
should give a warning "This is not a recommended shift sequence".

View 11 Replies View Related

Compare The Binary Sequences

Nov 18, 2008

I have 70 sequences of binary coded variables each, which I would like to compare in terms of overlaps for the number "1", e.g.,


a1 1 0 0 0 0 1
a2 0 1 1 1 0 0
a3 0 1 1 0 1 0
.
.
.
a70 0 1 0 0 0 0


How can I do a pairwise comparison in Excel for the number "1" (ie how often does the number "1" occur at the same place for two sequences?).

I thought about a correlation matrix (that compares sequences a1-> a2, a1-> a3, a1->a4, ...., a1-> a70; a2->a3, a2-> a4, ...., a2-> a70; .....; a69-> a70), but am looking for an easy way to compute this in Excel.

View 6 Replies View Related

Formula For Counting Sequences

Apr 1, 2007

I want to write a formula that counts sequences.

Details of Data:

Imagine you roll a 4-sided dice! The four sides of the dice are 1,2,3 and 0.

Sequence needs to be 5 in a row of either 1 and 2, 1 and 3 or 2 and 3. The 0 is to be recorded, but 'skipped over' in the sequence.

When a sequence of 5 occurs, there needs to be a count to record how many more times the missing number takes until it arrives. For example, if the sequence of 5 is 1 and 2, and the count will be to see how long it takes the number 3 to arrive.

View 9 Replies View Related

Lookup Value Based On Specified Number Sequences?

May 8, 2014

I need to come up with a formula that will lookup a value in a table based upon a specified number sequence in another table and then add that value to another number/price that corresponds with that specified number sequence.

In the attached worksheet you will see that there are two groups of tables (A & B). I want to take the prices in group A in columns B:E and then add the values at the top of the page in columns G:J based upon specific numbers to the right of the decimal place in column A under "Rate".

So in the example at the bottom you will see that the first rate in column A is 5.125. Since the rate ends in .125 then it should be using the value of 2.57 from J2. So it should take the price in B27 (108.328) and add 2.57 to give you 110.898 in M27.

My problem is that the rate sequence wont always be the same and neither will the values in columns G:J. The only constants are that the rates will end in 1/8ths and the values will be based upon which 1/8ths they end in. For instance; In the example the rate range goes from 5.125 down to 3.75 but sometimes it may be 5.625 down to 4.25.

View 12 Replies View Related

Code Matches Two Rows With Six Cells In Different Sequences

Oct 22, 2013

Worksheet cells A1 – A25 have sequential numbers 1 – 24

the following elegant code generates every permutation of six numbers from the list into Cols C – H

VB:
Option Explicit
Sub Combinations()
Dim rRng As Range, p

[Code].....

View 7 Replies View Related

Macro To Automate Copy/paste Sequences

Nov 5, 2008

I have a spreadsheet tool that I use to calculate values on a set of variables, based on values on an initial set of other variables, for a large number of cases.

The calculations require a number of sequential steps to be repeated to get the calculated values for each case, and I am hoping there is a straightforward way to use a VB macro to automate this process.

Essentially, these steps are required to calculate values for a single case:
1. A data input sheet holds the values on the initial/input variables for each case. The first step involves copying the string of values for the case on the input variables into a sheet where the calculations are done.

2. As soon as the input string of values are pasted into the calculation sheet, the calculation formulas generate values for the case on the new, output variables.

3. The output variable string is then copied from the calculation sheet into a “results output” sheet. This copy/paste procedure needs to offset from the first row on the output sheet, so that the row number where the values on the output variables are stored correspond to the case ID. For example, case ID 10 is stored 10 rows down from the first row (i.e., on row 11). Case ID 100 is stored 100 rows down from the first row (i.e., on row 101).

As there are a very large number of cases, I need to have a “control panel” in place, where I can indicate the range of case IDs that will be processed. This takes the form of two cells – one indicates “From ID” and the other “To ID” (for example, “From ID” 1 “To ID” 100). The macro then uses this information to loop through the calculation steps outlined above for these case IDs.

View 4 Replies View Related

Counting Sequences If "p" Is Present

May 28, 2009

I have the following two formula's:


=IFERROR(IF(X12="",X13&" "&MATCH(FALSE,INDEX(X13=X13:X1000,0),0)-1,X12&" "&MATCH(FALSE,INDEX(X12=X12:X1000,0),0)-1),"")

=MAX(FREQUENCY(IF(INDEX(X:X,12):INDEX(X:X,1000)="WON",ROW(INDEX(X:X,12):INDEX(X:X,1000))),IF(INDEX(X:X,12):INDEX(X:X,1000)="LOST",ROW(INDEX(X:X,12):INDEX(X:X,100)))))
The first shows the current sequence of events (WON or LOST) and the second the best sequence achieved.

They work fine but I would like to modify them to only use the data, if "P" is in column D of that row.

View 9 Replies View Related

Finding Name Then Finding Reoccurring Numbers

Feb 25, 2014

I have been trying to write two formulas in one cell. I have been able to write them both separately but have been unable to join them both together. What I am trying to do if first search name them how many reoccurring numbers appear. I have provided an example below

a b c d

1 Tom 333
2 Sam 22
3 Sam 22
4 John 5
5 Sam 22
6 Sam 1
7 Tom 3
8 Tom 333

So the answer would be

Tom = 2
Sam = 2
John = 1

View 8 Replies View Related

Highlighting Max & Min

Oct 12, 2008

I have a column "A" with a cell for each week's income (A-1 thru A-52).

Is there a way to program these 52 cells so that the cells reflecting the "maximum" and the "minimum" amounts of weekly income, would be automatically highlighted in some way? Of course the "minimum" would have to be able to not use the cells representing the weeks that have not occurred yet. These cells will also need to be able to change automatically as weekly income amounts change.

View 6 Replies View Related

Highlighting Row

Aug 19, 2002

I am interested in finding out how I can highlight the row I am currently working in? When I move rows, I want the highlighting to move to the appropriate row.

View 9 Replies View Related

Highlighting Big Changes

Jan 31, 2008

I've a large spreadsheet packed full of values, and % variences etc etc

My boss has tasked me to try and highlight each week the major changes from the week before.

The whole spreadsheet is full of vlookups based on a cell - Z3 in this case. Cell Z3 is a week number, and when i change that, everything is updated based on a load of other sheets.

Is there a quick and easy cheatuing way using some code that i can analyse all the changes from what the values were before, to what they are now, and highlight the major movers?

View 9 Replies View Related

Highlighting A Link

Jun 7, 2008

I have created a data base of all the spare parts we have at work.

In the last column I have entered a hyperlinks that take you to a layout of the store and shows you where the part is located i.e. – 1C would take you to shelf ‘1’ level ‘C’ on the drawing in another tab in the same Excel workbook.

I would be pleased if anyone could help me by suggesting away that I can make the destination cell highlighted or more prominent once you have clicked on the link.

Also can I make the Find window automatically appear when the workbook is first opened?

View 10 Replies View Related

Highlighting The Odd Value In A Column

Dec 3, 2008

I have a worksheet, the data flows from different columns, like a,b,c and the result is in d column. The entries are spread from 1 to 45 rows. The format of data is five digit number. As I have formatted the cells as "custom" like "00000", the Zero is shown on left side, but when the column is copied/pasted in another column in certain entries zero disappears. Is there any way to get the 4 digit entries, highlighted, so Zero can be added on left side manually directly to the concerned entries, instead of checking each and every entry.

View 4 Replies View Related

Highlighting Entire Row

May 17, 2009

This problem has been driving me insane, as I thought it wasn't possible to do in excel however this morning I accidentally pressed a shortcut key on my keyboard and what I wanted, happened.. pity I can't remember how I did it.

How do I highlight an entire row, but remains highlighted when i enter info in the cells until i move down to the next cell? Eg. I click on row"1" so that all cells are highlighted, then while entering info in B:1 - the entire row is still highlighted? This will be very useful in my line of work.

I know there was some information on conditioning formatting, but surely there is a way to do it via keyboard shortcut since i accidentally did it just before.

View 6 Replies View Related

Highlighting Only Certain Text?

Jul 30, 2014

I have the following code:

[Code]....

Which is conducting a wildcard search of roughly 15,000 rows of data. It is a wildcard search comprised of street names. So, if a user types "Wood" in ComboBox1, it may return Woodmont, Northwood, or any other combination. Is there a way, when the search results are populated, to highlight only the "wood" (in this case) part of the response?

View 12 Replies View Related

Row Highlighting Not Working?

Aug 4, 2014

I can not figure out why only the color index 5 and 8 are working in the example- (1). To tun it say "no" to the initial prompt that comes up and select 1 from the dropdown in A2. Before some additional functionality was added it was called TestBook and that highlighted appropriately.

View 2 Replies View Related

Highlighting And Printing ...

May 8, 2008

I have attached a sample sheet which is for invigilation of exams. In columns D, E & F are the initials of people invigilating at different times. What I want to able to do is to print personised sheets for each person where there initals are in bold and the box has a black border around it. This is very labour intensive if I do it manually as have to highlight one person, print, unhighlight and rehighlight the next person and so on. What I was wondering is could I use a macro to automate this process. So it has a list of all the initals and it searches through and highlights the person and prints it and then moves onto the next.

View 14 Replies View Related

Highlighting A Row When Clicked?

May 2, 2014

I have this module code in VB:

Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
Application.ScreenUpdating = True
End Sub

Conditional formatting rule applied to range.

=CELL("row")=ROW()

This highlight's the row yellow when a cell in that row is clicked, however it only highlights the row when you refresh the page by scrolling off the cell and back again. It just feels a bit flaky.

View 3 Replies View Related

Highlighting Next Row In Different Color?

Jun 9, 2014

Is there a way I could loop through a range and when a condition is met highlight the NEXT ROW in a different colour

For example if C10 houses the number 5 then highlight NOT the row with C10 in it but the NEXT row...

View 3 Replies View Related

Highlighting Data

May 15, 2007

I have a spreadsheet that I need to highlight the last row next to the name in column E where the date in column C is 35 days or less than the current date in cell A2.

For eg if there are 10 names containing the name "James" in Column E and the last date in column C (say C20) in line with James is 35 days or less than the current date in A2, then the entire row from A to G for eg A20:F20 must be highlighted in grey.

I need VBA code that will do this for me.

I have attached in sample spreadshhet. In the attached example A14:G14 and A16:G16 must be highlighted in grey

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved