Jan 26, 2007

You will probably find this very easy but I am having all sorts of trouble making it work as I want to! Basically I need to do the following procedure...

1) Open an Inputbox to collect an eight digit number
2) Insert a column in A:A
3) In A1, enter a col header (URN)
4) In A2, enter the number that was collected in the inputbox
5) Enter sequential number from A2+1 to the last row

Ideally, this would be randomised, so after stage 2 do RAND(), sort, and clear contents, but if I can get the main part right I'm sure I can work that out!

## Adding Non-sequential Cells While Excluding Zero?

Dec 19, 2012

I need to calculate ratings 1-5 of questions on client surveys received.

I have recurring sets of data, A1:E1, a number 1-5 is to be entered into one of the cells within this range. This same pattern is repeated 25 times....G1:L1, etc. At the end I need to total all the 1s, 2s, 3s, etc. Then I need to calculate an overall pct for each question based on the totals for that question, divided by the maximum score (5) multiplied by the total surveys received. The problem I am having is that my formula below is counting empty cells, and not giving me a proper pct.

=SUMIF(A1:E1,">0")/(5*\$B\$1)

## Adding Non-sequential Cells Based On Conditions

Nov 2, 2009

I'm trying to write a formula where I can add the values found in non-sequential cells in a row based on if the value in the previous cell in the same row meets certain criteria.

## Adding IF(ISERROR) To Multiple And Non-sequential Cell References

Jun 22, 2009

Is there an easy way to change

='Week 1'!\$D\$21
='Week 1'!\$D\$30
='Week 1'!\$D\$39
='Week 2'!\$D\$21
='Week 2'!\$D\$30
='Week 2'!\$D\$39

to

=IF(ISERROR('Week 1'!\$D\$21), "", ('Week 1'!\$D\$21))
=IF(ISERROR('Week 1'!\$D\$30), "", ('Week 1'!\$D\$30))
=IF(ISERROR('Week 1'!\$D\$39), "", ('Week 1'!\$D\$39))
=IF(ISERROR('Week 2'!\$D\$21), "", ('Week 2'!\$D\$21))
=IF(ISERROR('Week 2'!\$D\$30), "", ('Week 2'!\$D\$30))
=IF(ISERROR('Week 2'!\$D\$39), "", ('Week 2'!\$D\$39))

Without having to change each one by hand?

There is a pattern to the numbers.
There are 5 weeks, rows 12, 21, 30, 39, 48 in columns D,I,N,S,X

## Copy / Drag From Sequential Column To Non-Sequential Ones While Retaining Sequence

Jan 29, 2014

I have a form made that needs to copy a value from another sheet. The Form is 10 rows 5 columns and and in format for easy print. On sheet2 I have a column where each row is filled with a name.

I need to put this name into sheet1, so in the the appropriate cell I put =Sheet2!B2 and it gives me the value (name) from the other sheet.

Then I want to copy the form bellow the 1st one so that I have the same form but with the next name, which means I want =Sheet2!B3 to appear when I copy, but since my form is 10 rows when I copy it the formula copies to =Sheet2!B12 instead of B3.

I need to make close to a thousand of this forms ready for printing and I would like to avoid having to manually set the formula for the next cell.

## Sequential Number For Cells That Have TRUE

Feb 21, 2014

I have a column that says either TRUE or FALSE this is dependent on what number i input into another cell, so if i input 8, TRUE shows on every 8th row,

I want the cells that say TRUE to also have a sequential number next to it in the column beside it.

Formula i have: =MOD(ROW(S2)-1,nth_No.)=0

So for example, every 3rd row is TRUE, i am wanting a sequential number beside it:

FALSE
FALSE
FALSE
TRUE 1
FALSE
FALSE
FALSE
TRUE 2
FALSE
FALSE
FALSE
TRUE 3

## Finding Number In Non Sequential Worksheet

Mar 6, 2012

I have created a worksheet that uses lookup for the numbers that are in sequence but am unsure what formula to use when trying to lookup non sequence numbers as shown below.

Sequence No's
Cell A1:A10 would be 1,2,3,4,5,6,7,8,9,10 (as example)

Non sequence No's
Cell B1:B10 would be 2,5,1,7,3,8,4,10,6,9 (as example)

What do I use to lookup, if cell C1 = 1 and needs to find the No 3 from the Non sequence cells?

## Sequential Count Number Of Occurrences

Apr 13, 2013

I have a list of numbers in column A- for example

4
3
5
4
3
4

What I want is in column B to give the sequential count that each number is for that number. In other words in row one the number 4 appears for the first time and so the sequence number is 1. It next appears in row 4, so the sequence number there is 2, and for row 6, it is 3.

The completed table will look like this:

A B
4 1
3 1
5 1
4 2
3 2
4 3

Any formula for the cells in column B? My actual list is about 5,000 lines and so I need a formula that is not slow.

## How To Add Sequential Numbering Down A Column Until The Next Number 1 And Start Over

Feb 13, 2014

I have a column that is listing steps in multiple processes. I have each step 1 marked with a number 1 and would like to have a macro run that will read the column and when it sees a 1 move down to the next row and insert a 2, 3, 4, etc. until it hits the next 1 and then repeat the process. I am unsure how to build this as I am just starting to learn some VERY basic VB scripting.

## Same Page Printed But With Changing Sequential Number On It

Nov 12, 2008

I have a selected area which I print as labels.

I want to have a number on this label preferably counting back from the quantity of print.
So if I select 300 copies to print, the first label shows somewhere 300, the 2nd label 299, the third 298 and so on.

I use a button and macro for printing selected labels, so perhaps the reverse printing could be added there if only counting up is available.

Also to make it easier, a cell on the sheet can contain the number to count down from (this is preferred on thinking about it) So I could then print 20 labels from 300 to 280 say.

## Printing Forms - Sequential Number Posting

Feb 22, 2013

I am trying to print a number of forms with a reference number however when i print i want the number to increase to the next one.

I have used

Sub PrintCopies_ActiveSheet()
Dim CopiesCount As Long
Dim copynumber As Long
CopiesCount = Application.InputBox("How many copies do you want?", Type:=1)
'Now the program wants you to input how many pages you like to print.

[Code] .......

However once i have ran it, save it, and then come back to it later to print again the numbers go back to 1 to 'X',
how do I get it to start from the last number printed?

## How To Append Sequential Number To A Text String To Avoid Duplicates

Jun 12, 2014

Is there a formula that will add a number, in sequence, to the end of a text string to avoid duplicates?

I need to generate an ID number for transactions. This ID number is the Account Code-Last Two #s of the Year-Unique 3-Digit Number. So for instance, 5022-14-001 means it is the first transaction from account 5022 in the year 2014.

Column A has the Account Codes. Column B has the date of the transaction in MM/DD/YYYY format. So far the formula I have is:

=CONCATENATE(A1,"-",RIGHT(YEAR(B2),2),"-",TEXT(????,"000"))

With ???? being some function or set of nesting functions I need to create the sequential number. It needs to be able to say "Okay, this is the third instance of there being a 5022-14, so we need to stick -003 at the end of this."

Additionally, this "003" needs to be frozen, so if we change how the sheet is sorted and the line item moves around, it will still always be "003".

## Excel 2007 :: AutoPopulate Sequential Reference Number Field

Mar 27, 2012

I am trying to do some basic VBA in my spreadheet, I just want to create an auto-open statement that inputs then next sequential number in column A1 every time the s/s is opened i.e.1,2,3,4 .....

I am using excel 2007 and my knowledge is very limited. I used a code:

Sub AUTO_OPEN
Range("A1") = Format(Range("A65536"), "YYYYMMDD") & Right(Range("A1"), 3) + 1
End Sub

(the first time you open the file you would need to add the first entry '20021122001)

But this does not work and I get a compile error when run thru debugger.

## Excel 2007 :: How To Return Previous Sequential Number From A Group

May 10, 2014

Windows 7, Excel 2007. a formula to find the next lowest sequential number within a group.

Here's an example data set, which represents transactions by date and category:

Col A is a user entered Date which will not be in chronological order (unfortunately a sort is not an option)Col B is a user entered CategoryCol C is a formula that gives the chronological sort order based on the date.

The formula in C2:C9 is =COUNT(\$A\$2:\$A\$9)-(RANK(A2,\$A\$2:\$A\$9)+COUNTIF(\$A\$2:A2,A2)-1)+1Col D is a formula to determine if the row is the first chronological transaction within the Category

The array formula in D2:D9 is =IF(MIN(IF(\$B\$2:\$B\$9=B2,\$C\$2:\$C\$9))=C2,"Y","")

This might not be a necessary column, but can be used as a helperCol E is where I would like a formula to give the next lowest value in Col C for the Category in Col B (the order number in Col C for the previous transaction within the same category).

I have entered in the values that the formula should return in Col E in the table below

A
B
C
D
E

[Code]...

If the current line is the first transaction of the category, the formula should return the value in Col C for that line (so E2 would equal the value in C2, which is 2).

So the first part of the formula could be straightforward, using the helper column:
=IF(D2="Y",C2,

Here's the tricky part: If it's not the first occurrence of the category, then it should return the value of Col C for previous transaction (or the next lowest number in Col C that is within the same category).

E3 would return 4, since the previous transaction for Category A was line 9
C3 = 6, and of all the values of Col C for Category A (2, 4, 6, 8), 4 is the next lowestE4 would return 6, since the previous transaction for Category A was line 3 C4 = 8, and of all the values of Col C for Category A (2, 4, 6, 8), 6 is the next lowestE5 would return 1, since it is the first transaction in Category BE6 would return 1, since the previous transaction for Category B was line 5 C6 = 5, and of all the values of Col C for Catebory B (1, 5, 7), 1 is the next lowestEtc.

I'm thinking I need an array formula to find the minimum value within the category, where that value is less than the value of Col C in the current line. Just not sure how to write that...

Jan 13, 2007

I've got a problem involving several Dim'd Variables needing to be added up, they're all Dim'd as Variants though as they can be either strings or numbers at any time.

I need a formula (VBA) to add them up (to add their actual numeric values - not just a "1" if they contain a number) and ignore them all together if they contain string values.

## Adding A Number To Deg Min.dec

Oct 24, 2008

I have a column of Latitudes (12° 32.467'S) to which I wish to add 0.09'.
The result being 12° 32.557'S

Dec 8, 2008

I have excel sheet with lot of number, I want total 7 digits in call. Some of numbers i have in 6 digits so I need to include 0 after “L” and Some of numbers is already has 7 digits.

e.g.

Numbers
L34654
L215487
L54875
L459875
L48546

Need to add “0” after “L”
L034654
L215487
L054875
L459875
L048546

Oct 24, 2009

I have a form that requests random info. All this information is saved to a worksheet. I would like to give each transaction a reference number. In order to do so I would like each time a new record is saved to add 1 to the previous reference number. Also I would like to start the transaction with a unique identifier "ie. rn1001".

Apr 12, 2012

I have two groups of data? I selected the cells in yellow and defined the name of those cells as group1. I want to be to do absolute value of individual cells and add them up. I tried pressing shift control and enter and it still isn't giving me a number. I can do it if the numbers are next to each other but if they are separated by a row it won't let me.

[URL]

## Adding Percentage To A Number

Oct 16, 2012

Is there a way to add a percentage to a number, I know the Method of Multiply by 1.25 for 25% The problem is there another way to formulate without the "1."

Sheet1 Â LMN
32640%15.28?

## Adding Plus 1 To Number With Letter In It?

Sep 7, 2013

I'm trying to add plus 1 to a cell from another cell but it doesn't work because the number starts with a letter. I do want to keep the letter in there for a reason so removing the letter to make it work is not what I want.

Example:

Code:
ThisWorkbook.Sheets("Invoice").Range("H5").Value = ActiveCell.Value + 1

Is it that I need to declare and set the ActiveCell value as a string or something?

## Adding Zero At The Start Of Number

Jan 12, 2008

I have phone numbers imported from outlook in csv format. Now these numbers are like 2782512512, i want to add Zero at the start of this number. So, it will become 02782512512. How can i do this. Find and Replace method doesn't work.

## Adding A 0 To The Front Of A Number

Sep 8, 2008

I have a worksheet to keep track of products. I use an SKU column with a Unique Number to keep track of those items on the shelves.

When I started my project I never imagined that my database would grow as large as it has. I started my SKU numbers with 80000, never suspecting that I would get to 90000. I am now at 125700. Many items have been removed / sold so it only encompases only 15500 rows.

On the site that I sell these Items, the SKU's when displayed start with 100000 and go to 125700 where 80000 is next and goes to 99999? ( or the reverse depending on which tab I choose ) Not sure why this is but there is nothing I can do to change the way they do it so I must find a way to change my system. With all the 80000 - 99999 items numbered - changing them to 6 digit 125700+ numbers would be a huge undertaking so I would like to add a 0 in front of each 5 digit Number in my SKU Column. That way my items will show 080000- 125700 instead of starting in the middle.

I do keep the column my ascending order so it is currently formated as a Number. I do at times copy an paste or pull ranges items by SKU numbers to mark down or modify.

When I place a 0 manually in front of 80000- it disappears when I move from the Cell.

If I change it to a TEXT cell- it stays in place.

Excel help doesnt answer my dilemma-- nor does my book.

I see there are masks etc -- or is just text OK ? (as I stated - I do use an numbered order or range to identify groups of items at times )- if text is OK, what is the best way to add a 0 to the start of each 5 digit number other than individually ?

There are Gaps in my sequence so I cannot just replace the first cell with 080000 and pull down.

## Adding Colour Background And Number

Jul 28, 2014

In the IAF tab, last one on sheet, I want to highlight a cell if on the Day tabs there is anything in column E, this will be text e.g. LAD, LE, E, AD, LC or NS, and in the same cell show the number that appears in column J of the day tabs, the excel sheet I'm working is to large to upload, if I delete some of the tabs all of the formulas go out of kilter. If Joe Blogs was at work on Day 1, the corresponding cell in the IAF tab should be yellow, if the supervisor monitored Joe's work on Day 1 the same IAF tab cell should remain yellow and show the number that is placed in column J on Day 1 for Joe Blogs.

I have managed to upload an amended copy of the file : Job PSS MASTER - v3 6 AMENDED.xlsxâ€Ž

## Adding And Replace A Number In A Cell

Dec 4, 2008

i have a question about adding a number to a cell. This is the problem. Each day we track contacts we made in a spread sheet. how could i, lets say type 2 in a cell that already reads 42 and once a tab away from the cell it would change to 44 (add in the background 42+2=44).

## Adding Number To Subtotal In Same Cell?

Nov 2, 2012

I am trying to calculate the percentage of a number, have it subtotal, and then add to that subtotal another number all within the same cell like so:

20000 + 5% = 21000 + 4000 = 25000

## Adding Number To Existing Set Of Numbers

Mar 1, 2013

I want to add a number to existing set of numbers.

E.g. 10035-TSZ651-MT0A01-42004314-F01-023

and i want to add 0 to 023 so that the number will be

10035-TSZ651-MT0A01-42004314-F01-0023.

Sep 16, 2006

I'm working on a complex A/R aging summary. So Ill have couple of question, but right now I'm trying to have excel automatically keep track of the A/R process. For instance every business day I would like the number of days the Invoice is outstanding to go up by 1. So when I get to work on monday the invoices that have been due for 20 days will now show 21 without me touching it.

May 3, 2007

I have few range of data that may range from 0 to 24 and the return to "0 " after 24 and the 2nd set of value keep repeating 0 to 24, but I would like to keep adding 24 when the value return to 0 and if the number less than 5 will be adding 24 and the number from 6 to 8 will be equal to 11 and also the number from 9 to 23 will not change. I have attached an example that Colum A needed to be converted to column B (which I done it manually).

## Adding Number To Cell Reference Not To Contents

May 28, 2006

I want to create a formula that will refer to the cell I want by adding a number to the cell reference, not to the contents of the cell. For example, lets say that the cell C11 holds a value of 22. I want to add 4 to C11 to get my formula to reference cell C15, I don't want it to add 4 to the contents of C11 which is 22 and would give me a result of 26. I have a large spreadsheet and I can't just fill down the way I have it now and I don't want to have to retype the formula every time.