Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Excel


Advertisements:










Conditional Numbering Of List Values


I have a list of 48 000 zeros and ones (0 and 1s) (and 12 separate lists).

If there is a 1 then I will return a zero.

If there is a zero then I need to find the next 1 and return the 'distance' to that 1.

For example
1
1
1
1
0
0
0
0
1

The first zero will have to return 4, the second 3 etc.

I have tried using Match(1,[ range],0) but this takes for ever to run.

I could write a udf to do this but figure that it would have to be based on a loop.

In the mean time I will implement the udf.


View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
Numbering A List
I'm trying to make a sequential resultlist starting with nr 1, 2, 3, etc under the column: Rank ? This should be part of a macro, so autofill is not an option... As you can see, the number of rows are different from each group, and starts with nr 1 for every group. (Some formatting became all wrong posting this.........

View Replies!   View Related
Look Up List Values Between Two Values; List Row Contents
Sheet2 contains various data, including one column of dates.

What I would like to do is populate Sheet1 with functions that search Sheet2 for date values between two separate date values on Sheet1 (cells F1 and G1). When a match is found on Sheet2, row contents from Sheet2 should populate on Sheet1.

In addition, I would like the functions only to match listings in which the value in column E on Sheet2 is greater than zero.

I have attached a sample workbook that illustrates the structure of the worksheets and the desired results. Looking forward to finding a good solution.

View Replies!   View Related
Named List: Data Validation To Restrict The User To Only Selecting Values In A List
I'm trying to use data validation to restrict the user to only selecting values in a list which I create. Right now, the list is a named range. I'd like to get rid of the range and just use a named list. I create a name using the following as my list.

Insert > Name > Create
Name: Fruit

Refers to:
banana,apple,orange

When I try to use the name Fruit in my data validation, I get the message "The List Source must be a delimited list, or a reference to single row or column." I thought my name "fruit" was a delimited list.

View Replies!   View Related
Remove List Values Not Present In Another List
I have two worksheets, one which contains a list of workstation numbers, and another which contains all of the workstation numbers and additional information on the workstations in the company.

I want to remove all workstation numbers and their information which are not present on the first list from the second list.

In the first w.orksheet each workstation number is in a seperate row, and in column one (seperate cells).

In the second worksheet, each workstation number and its corresponding information is on the same row, and each different workstation is on a seperate row with its information.

View Replies!   View Related
Use Values From One List To Remove Rows From Another List
I have two lists in the same workbook:

List 1) Contains customer contact information, including an account number. These account numbers may be duplicated in the list.

List 2) Contains account numbers of customers who wish to be removed from the first list.

I need to remove the rows from the customers list (List 2) where the account numbers match, and also copy those to another list for review. So far, I can manually choose and run some code to remove one particular account number only (eg 123):

Set FoundCell = Range("A:A"). Find(What:="123")
'Locate information to remove
Do Until FoundCell Is Nothing
FoundCell.EntireRow.Copy
Sheets(" Deleted List").Select

'ActiveSheet.Next.Select
Range("A1").Select

Selection.End(xlDown).Select
Selection.End(xlDown).Select
Selection.End(xlUp).Select
ActiveCell.Offset(1, 0).Select..................

View Replies!   View Related
Conditional Copy To List
I need to form a list of text (column A) and corresponding numeric values (column B) whereby the list values are placed in the next unused cell in these columns when the worksheet is updated. Placing values in the list is based on finding a TRUE value in column E.

The logic for this goes as follows:

If the value in cells E44:E1445 is true then copy the corresponding text value from the range C44:C1445 into the next unused cell in column A starting at cell A44.

and

if value in cells E44:E1445 is true then copy the corresponding numeric value from the range E44:E1445 into the next unused cell in column B starting at cell B44.

Can anyone in the forum help with this logic?

View Replies!   View Related
Conditional Formatting As A New List
Is there any way that I can use conditional formatting and instead of highlighting top 10% to have them displayed as a new list.

If that's not possible how can I have highlighted conditional formatting answers pulled to a new list for example: Top 10% list.

View Replies!   View Related
Conditional Formatting And List Of Criteria
I have a column of information. The first cell has the record number. Then there are criteria the record must meet. If any of the cells have N for nonCompliant, i would like for the record number to change colors. If it were only one citeria, i think i know how to do that, but because there are as many as 10 I'm not sure how to make it change colors for all ten unless i do it one cell at a time.

Also there are several thousand columns on different worksheets, how do i apply the conditions to each column without doing it manually?

View Replies!   View Related
Drop Down List Which Returns Values Based On What Has Been Selected In The Previous Drop Down List In The Adjacent Cell
I'm trying to create a drop down list which returns values based on what has been selected in the previous drop down list in the adjacent cell, e.g. if 'Apples' is selected in the previous cell then you should only be able to select from 'Gala, Granny Smith', or if 'Oranges' is selected you should only be able to select 'Seville, Blood Orange'. Is there a formula which would do this, or can I use a pivot table somehow? I'm totally stumped.

View Replies!   View Related
List Duplicate List Values
I have an excel spreadsheet that is several thousand entries long. There are cases in which duplicate entries will spring up on that list.

What I want to do is come up with a formula that will find the first duplicate entry in that list and then display that entry in cell on another worksheet. If it was at all possible, I would also like to have the row that the duplicate entry is contained on display as well, in a different cell of course.

I do not want to highlight them using conditional formatting since I have used that to perform other tasks on that sheet and that wouldn't display the entries in a different cell for me, and I would prefer not to use a macro to perform this function it that was at all avoidable.

View Replies!   View Related
Drop Down List Which Displays A Different Set Of Values Depending Upon The Value Selected By A Previous Drop Down List
I need to have a drop down list which displays a different set of values depending upon the value selected by a previous drop down list. ie. (drop down box 1)= x, y, z. (drop down box 2)= either x1, x2, x3, or y1, y2, y3, or z1, z2, z3. I can produce a single drop down box thats not a problem but linking several drop down boxes is beyond me .

View Replies!   View Related
Identifying Duplicates In A List Using Conditional Formatting
I would like to identify duplicates in a list using conditional formatting in Excel 2007.

I have tried choosing to identify duplicates using the formula that I have found on many threads throughout the message board:

=COUNTIF($A$1:$A1,$A1)>1.

This function works up to 15 characters in a cell, but Excel seems to be treating all digits after the first 15 as the same, resulting in a "fuzzy match" where I want an exact match. Many of the values in my list are 18 characters long, in text format to prevent rounding.

I've noticed that Excel treats the 18-characters values the same way when sorting; for example, it treats these two values as the same:

'234567891011121314
'234567891011122413

Is there a way to force Excel to examine those last four digits for the purpose of sorting & identifying duplicates?

View Replies!   View Related
Conditional Sum To Match Against Drop Down List
I am having is that I know that other people will be adding more and more suppliers/brands and types as time goes on.

This presents two problems:

1) I am not in a position to keep making new rules every time a new entry is added to each of these categories.

2) I am trying to add functionality that will allow me to sort them alphabetically - so that the drop down lists continue to make sense. However if this were to happen then the calculations created next to the lists would go out of whack whenever I did an alphabetical sort.

View Replies!   View Related
Conditional Drop Down Lists Based On Another List
Just wondering if a drop down list can be specific to a selection made in a previous cell. For example in column A the user would select either:

Weekly
Monthly
Other

Then in column B, the drop down list would be conditional upon what was selected in A. So if the user selected 'Weekly' - the drop down list in B would be: Monday, Tuesday, Wednesday, etc. Or if the user selected 'Monthly' in column A's list, the list in column B would be: 1, 2, 3, ......31.

View Replies!   View Related
Fill List Based On Conditional Criteria
I have an Excel sheet with a column (column O) containing expiring dates. The dates represent the day a certain product expires, and for each date, a name is attached (in column A). So there are 500 dates in the sheet, each with a different corresponding name. How would you have Excel create a list, in a new sheet, of the names that are expiring in less than 90 days from today? That is to say, if the date in a cell in column O is less than 90 days from today, then the information in the aforementioned cell and the information in the cell in column A (in the same row) is COPIED (not moved) to a list in a new sheet?

View Replies!   View Related
Can I Extract Non Zero Values From A List Of Values
How can I extract non zero values from a list of values

View Replies!   View Related
Average A List Of Values But Some Values Contain A Zero
I have a list of values on my spreadsheet in a similiar order to this:

17.91
16.59
15.00
14.86
13.56
12.17
11.01
0.0

I use the average function to work out an average for all the values, but since the value of 0.0 is showing i should not include this as an average. the range of values above (8) will always be the same for the month - so i need to find a way of omitting the 0 value without keep changing the formula


View Replies!   View Related
Conditional Concatenation The Values
I have a big spreadsheet. I would like to concatenate the values in 4 columns, starting from right to left, separating each concatenated value with a " / ". One or more (or all) columns may be blank, and the " / " should only be inserted between two values.

This example makes it easier to understand...the first column shows the intended result.

Sheet1  ABCDE1ConcatenateLev1Lev2Lev3 Lev42XX   3Y / X XY 4     5Y Y  6Z   Z7Y / XX Y 8     9A / Z / C / YYCZA Excel tables to the web >> Excel Jeanie HTML 4

View Replies!   View Related
Conditional Formatting With More Than Three Values
Im using access 2003 and the conditional formatting is only limited to 3. But i wanted 5. I was told it can be done using VBA. But I've got no programming experience whatsover.

Basically this is what i want, but i dont know how to translate this VB

IF Cell Value = >1 then make the value "Bold", "Bordered", and "Fill" with Orange colour.
IF Cell Value = "H" then make the text "Bold", Bordered, and "Fill" with Green colour.
IF Cell Value = "S" then make the text "Bold", Bordered, and "Fill" with Yellow colour
IF Cell Value = "A" then make the text "Bold", Bordered, and "Fill" with Blue colour
IF Cell Value = "U" then make the text "Bold", Bordered, and "Fill" with Red Colour

View Replies!   View Related
Changing Conditional IF Values
I have two worksheets. One is called "Orders" and the other is "Invoice2".

On my "Orders" sheet I have a listed of product codes and ordered quantity. One column being ordered quantity and the other being product codes.
For instance it is like this:

Product Codes Ordered Quantity

TH1 5
AB3 0
JC5 10
LFK 11

On my "Invoice2" sheet I have a column for product codes and ordered quantity. Basically, I want the "Invoice2" sheet to reference the "Orders" sheet in relation to these columns. However, on the invoice I only want to display the product codes ordered and ordered quantity. For instance TH1 would be the first line and JC5 the second line. This is because AB3 is less than 0. So ever product code on the "Invoice2" sheet must be greater than 0 in ordered quantity on the "Orders" Sheet. This is what the invoice2 sheet would look like:

Product Codes Ordered Quantity

TH1 5
JC5 10

View Replies!   View Related
Conditional Format Highlight The Highest 3 Perecentages In A List
I've creating a sheet to keep track of quality for my department. What i want excel to do is highlight via conditional format the highest 3 percentages in collum.

Example

85%
90%
91%
99.25%
96%
87%

What i want is to have 99.25%,96, and 91% change to green since they are the highest %

View Replies!   View Related
Conditional Code Not Working Inside A List Box
The following code worked for me until,I put inside a list box.

View Replies!   View Related
Conditional Pivotfields: Update Each Pivotfield List Given What Has Been Chosen
Need a code to which would update each Pivotfield list given what has been chosen? This is so when some are chosen in one Pivotfield, things that only exist with the removed Pivotfield items are also removed.

View Replies!   View Related
Result Conditional Upon Preceding Values
I am using the following formula (which I need to adapt) to enter a value in a cell C30.
C30=IF(A30>0,A30,0)
I will need to enter this formaula in column C rows 1 to 300.

The problem is that, in addition to A30 needing to be >0, I only need to enter a value in C30 if a value (>0) is found in column B (B29 going back to B1) before a value is found in the A column (A29 going A1). If a value in the A column is found first then I need to enter "0".

For example, if A30 is >0 and the previous A row A29 is >0, I want to enter 0 in C30.

Another example, If A rows A20 to A29 are 0 and B19 >0, then I want to enter A30 in C30.



View Replies!   View Related
Conditional Formatting With Values In 3 Cells
I have 3 values in C3, D3 & E3 which need to be all the same at all times but when they are not I'd like to highlight the one that isn't with a background colour.

View Replies!   View Related
Conditional Format IF Cell Is One Of Three Values
Cell D8 contains many different account codes. When entering into this sheet, if D8 is filled using account code 4010.12, 4010.17, or 1190.1000, then I want Cell J8 to turn a different color, flagging that cell so they know they have to fill that cell in J8, otherwise that cell will remain blank.

View Replies!   View Related
Conditional Formatting For Groups Of Values
Is there a way to do the following using conditional formatting?

I need to have all duplicates highlighted.

For example (Since "Ana M." is the first) highlight both rows (or at least the group of "Ana M." cells in the column, entire row not necessary)

Highlight:
Ana M. 12 A St 333-3333
Ana M. 23 Z St 333-3333

Skip:
Jane S. 12 A St 555-5555
Jane S. 15 Z St 555-5555

Highligt:
Sam A. 55 A St 222-2222

Skip:
Tony J. 45 A St 444-4444
Tony J. 11 B St 444-4444
Tony J. 66 Z St 444-4444

View Replies!   View Related
Conditional Formatting Formula For Value Between Two Other Values
I am having a very difficult time trying to figure out a conditional formatting formula for something that seems very simple. There are 3 conditions I would like to apply to cell B2: If the value of I2 is less than or equal to 24, but greater than or equal to 21, shade B2 red. If the value of I2 is less than or equal to 20, but greater than or equal to 12, shade B2 orange. If the value of I2 is less than or equal to 11, but greater than or equal to 8, shade B2 yellow. I am sure I am missing something quite simple here.

View Replies!   View Related
Conditional Format MAXIMUM Values
Is it possible to apply a Conditional Format to the MAX Value in each Column and color the appropriate Name in ONE SHOT !? What I mean is - selecting range A2:D9 and applying a C.F. I managed to achieve that by applying two different Conditional Formats. Three separate conditions for Col. A and one condition for the remaining 3 columns (B,C,D).

View Replies!   View Related
Conditional Formatting- On Specific Values
Can Conditional Formatting be set on multiple values? I cannot get this to work with any formula, the cell values are not between two values. For example: for value = D or R, or X change color to green. (I would have another condition within a range F to Q)

View Replies!   View Related
Conditional Formating On Text Values
Been hunting around the forums but cant seem to find quite what I want.

I want to specify the background of a cell to be red if the text in that cell contains a specific word.

e.g. cell a1 will have the text 'Rest of World' (without quotes). I want this to show as red if it contains the word 'of'.

Of course the cell may contain other words but this illustrates what I'm looking to achieve.

I tried the following conditional formula but this does not work:

=IF(SEARCH("of",H3)>1,1,0)

View Replies!   View Related
Using Conditional Formatting: Compare Three Values
For use in conditional formatting, how do you check three values are identical?
=exact doesn't work, x=y=z doesn't work.

View Replies!   View Related
Conditional Values Affecting Another Cell
I was curious if it was possible to have a cell's formatting be altered using the conditional values tool. Example: if(A1=A2,A3=redfont,A3=automaticfont). I know it wouldn't work like that, but it does show what I'd like to happen.

View Replies!   View Related
Conditional Formatting To Find Non Unique Values
I need to find rows in my large worksheet that have 2 vendor names for a single vendor ID. Each vendor should only have 1 vendor ID.

Is there a way to highlight rows that have a single vendor ID for more than 1 vendor name?

View Replies!   View Related
Conditional Formatting Return Text Values
I am trying to use CF to return a text if a condition is met. Here is my CF formula which doesn’t give me any value in return.

=IF($C$31="N/A","","MM DD YY")

View Replies!   View Related
Conditional Format - Based On A Series Of Values
what I am trying to do:

I have a workbook with 2 sheets.

Sheet "A" has a column called "FILEPATH" that contains the complete path to a file (eg. "C:mystuffdocumentsdocA.pdf"). There are about 3500 rows of filepaths on this sheet.

Sheet "B" has a column called "DELETED FILES" that contains a list of deleted filenames (eg. docA.pdf, docC.pdf, etc.), one filename in each cell.

I want to highlight the rows on Sheet "A" that contain a path to a file that is listed as deleted on Sheet "B".

View Replies!   View Related
Conditional Data Validation: Show All Values
I need someone to go through them assigning a building number, level and location to each of them. I am using drop down menus, the first choice is building and has the following options:

B1
B2
B3
B4A
B4B
B5
B7

Depending on the option selected there maybe different locations, i.e. B1 has the following available locations:

1-4
4-16
MER
ALL
KIT

Whereas B7 only has: ALL. The third column, level, operates in a similar way.

View Replies!   View Related
Conditional Formatting Based On Text Values.
scenario: Column H needs to be formatted to green if the text in Column F does not equal "Dog". Dog could be either DOG, Dog or dog. I know how to get it done with only dog, but this one is a bit tricky.

View Replies!   View Related
Conditional Sum. Values Represent Numbers
The following percentages equal these numbers:

100% = 5
93-99% = 3
80-92% = 1
<80% = 0
From F5 to AR5 percentages scores will be inserted for each row.

So percentages scores for the first three entries (F5-H5) should yield the following result:

100% + 95% + 85% = 5 + 3 + 1 = 9

View Replies!   View Related
Random Numbering
I have a list of names in Column A going from row 2 to 15. I want to randomly assign them a number ranging from 1-14, but that random number can not be assigned twice. I only need each number once.

I am putting the formula in column B.


View Replies!   View Related
Auto-Numbering
i have formulas in a range L5:L15 which sometimes return some value and
sometimes zero. i want to give them auto numbers in column M in a way that it
should only count the cell which has some value.
suppose formula in L5 returns some value, L6 also then L7 & L8 have no
value(but formula persists), cell L9, L10, L11 has values then L12 has no
value L13, L14 has value and L15 has no value (but it has formula in it)
values in these cells changes and some goes to zero and some return values.
now i want to give them Auto Numbers in a way that cells with some value
should only be considered.

View Replies!   View Related
Numbering In Forms
I have created a form to input parking ticket data to a spreadsheet, it all works exactly as i want it to, but i really need it to tell me the next available number or empty line, so i can use that for filing and audit purposes, ideally i would like it to do sequential numbering, but i've been looking for weeks and cant find a soloution, i have basic knowledge of VBA and i'm really struggling with this,

View Replies!   View Related
IF Statments And Numbering
Heres an example of what I'm trying to do,

if I select form a list a certain name (i.e. "Plt") then I want it to populate a list of numbers (1-102) and the same with "SO" populating numbers 1-119.

and here is what I have so far

=IF(OR($F$1="Plt",$F$1="SO",$F$1="Plt LR",$F$1="SO LR"),"1.")

Is there anyway of making excel do this?

View Replies!   View Related
Numbering System
Wondering if there is a formula for Excel that could replicate a numbering format like in Word?

Example:
A1.1.
A1.1.1.
A1.1.2.
A1.2.
A1.2.1.
A1.2.2.
A1.3.

and so on...

Idealy I would like to go farther than the 3rd level.

View Replies!   View Related
Numbering For Coordinates
how to get a single cell (C2) and (D2) to make the numbering format go from (## ## ##) to (######).

The Excel spread sheet is a coordinate converter, designed to take Degree's minuets seconds and convert it to Decimal Degrees, the formula is set up and work Great, but every time I copy and paste the coordinate to the excel spread sheet, i have to manuelly erase the spaces between the numbers so the formula can work properly. How can i get the cell to automatically delete the space between the numbers to save me time.(I.e 29 35 42.34325 -to-> 293542.34325)

View Replies!   View Related
Numbering Macro
why the Macro below works fine when the spreadsheet is not filtered, but once you filter the spreadsheet it does not work. and if possible a solution.

Sub Count()
Dim MyInput As Integer
MyInput = InputBox("Enter Start Number")
MsgBox ("Start number is ") & MyInput
mycount = Selection.Rows.Count
MsgBox mycount
ActiveCell.FormulaR1C1 = MyInput
For Num = 1 To mycount
ActiveCell.Offset(1, 0).Select
ActiveCell.FormulaR1C1 = MyInput + 1
MyInput = MyInput + 1
Next Num
End Sub

View Replies!   View Related
Sequential Numbering
I have a workbook with two worksheets. Worksheet #1 is a form that will be populated with data and saved as a new worksheet, then cleared and used repeatedly as a master form. Worksheet #2 is a log / register of the unique forms completed and saved from the master each time. I need to assign a unique sequential # to each form when it is saved and record this number in a column on Worksheet #2 (the Log). I am using some macros for the copy work but struggling with the auto-numbering of the forms when completed and saved.

View Replies!   View Related
Numbering By Group
i have items listed in groups and need to number them

1111
1111
1111
1222
1222
1222
1222
1444
1444

in the column beside this i need these items to be numbered

1 1111
2 1111
3 1111
1 1222
2 1222
3 1222
4 1222
1 1444
2 1444

View Replies!   View Related
Sheet Numbering
I'm wondering if this is the way things work and there's nothing to be done about it (but I doubt that). I have a workbook that I load data into from a csv file. The csv file is "divided" into regions, and I want each region's group of data to be loaded into a separate sheet. To be on the safe side, I delete all the sheets before loading the data with the following code that I found in this forum

Sub delete_all_sheets()
Dim sh As Worksheet
Application.DisplayAlerts = False
For Each sh In ActiveWorkbook.Worksheets
If sh. Name <> ActiveSheet.Name Then
sh.Delete
End If
Next
Application.DisplayAlerts = True
End Sub

Then, for each new region, I create a new sheet with the following code

On Error Resume Next
sheet_nr = sheet_nr + 1
Sheets(sheet_nr).Activate
If Err.Number <> 0 Then
ActiveWorkbook.Sheets.Add after:=Worksheets(Worksheets.Count)
End If
On Error Goto 0...............................

View Replies!   View Related
Conditional Copy/Paste Special Values Macro
I have 9 worksheets in a book with sheets 1-8 used for data entry, and sheet 9 used for a weekly data upload. Sheets 1-8 are all formatted the same, they just represent different vendors. I need a macro to look through column F (invoice number) on sheets 1-8 and see if the value of each cell already appears in column c on sheet 9. If the value is not found and the row value for column M (sheets 1-8) is >0, I need to copy the data from columns D:K and paste special values into the next blank row on sheet 9.

Basically I'm trying to see if I've already paid an invoice, and if not then I need to automatically add the data for payment. I've tried to mess around with a VBA code myself and ended up with a migraine every time. I've also tried to use the advanced filter, but the cell values I need to copy over contain formulas and conditional formatting...not to mention I can't delete the data on sheet 9 that has already been added.

View Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved