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


Advertisements:










SUM Formulas: Add Together The Numbers In A Column


I'd like to use a SUM formula to add together the numbers in a column, however i would like to do this missing some rows out........ ie; A1:A11 plus A13:A20 plus A22:A30.

I would also like to do this with another column containg fractions.


View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
VLOOKUP And SUM Formulas: Pick Up Another Value In Column 9 And Should Add Value In Column 7 And 9 And Return It
=IF(ISNUMBER(VLOOKUP($E8,Su!$D:$K,7,FALSE)),VLOOKUP($E8,Su!$D:$K,7,FALSE),)*$I8

In the first vlookup it picks up a value. I need to do the same vlookup function but it should also pick up another value in column 9 and should add value in column 7 and 9 and return it. Employee id numbers are in column E in the first page.My formula checks for the employee id in Su sheet and retrieves the value from the seventh column. I need to retrieve also from 9 th column and add them together.

View Replies!   View Related
Gathering The Sum Of Negative Numbers & Positive Numbers In A Column
I have a column of variances, these contain both negative numbers and positive numbers. I want to gather a sum of all the negative numbers and positive numbers separtely. Basically saying all the positive overeages = this amount And all the negative shortages = this amount. you can see the attached sample.

View Replies!   View Related
Sum Formula: Sum Of The Numbers In Column
I would like a formula for cells B1, B2, & B3 that will give me the sum of the numbers in Column B which are next to their corresponding plan in Column A. The attachment is a sample of a sheet that will be having approx 500 rows to work with. I have tried using the "Sumif" funtion, but I can't seem to get it to work correctly.

View Replies!   View Related
Dynamic Formulas- List Of Serial Numbers In A Column
i have a list of serial numbers in a column, say column a, for example, and i have corresponding data in columns to the right of this, say just column B for example- I also have a header on column B which counts the data in column b. (just a COUNTA, counting occurences of 'x' )

my issue is this: i need to limit the range of the COUNTA dynamically- by the number of serial numbers in column A. for example: if i have 10 serial numbers, i want my COUNTA range to be B1:B10 (excluding header) and... i need this to be a built-in formula, NOT a VBA macro. i need it to update automatically, as soon as another serial number is entered. i've tried using references to named ranges and all sorts of language tricks, and i cant seem to get it to work. (such as:

' =counta(b1:namedrange1)

i'm going to have to do the same thing with COUNTIF's, so if that is also easily explainable,

View Replies!   View Related
Show Sum Of Numbers In One Column IF Another Column Has A Specific Category
I have a worksheet which basically tracks time. the time is reported in Column C. In that row in Column E, there is a validation list with about 6 different categories in it. On the side of this "table" I have a list of all the categories and I want a value to be next to it that reports the sum of time (C) for each category (E).

So for the "Routing" category, I would want the value to be the sum of just data on the timesheet that have "routing" in Column E.

View Replies!   View Related
Sum Numbers In Column If Date In Other Column Matches
I have a spreadsheet which will be completed by numerous users, with a worksheet reserved for each area. The spreadsheet is to record the number of days lost to training etc on a weekly basis.

Each worksheet has 3 columns Ė column A DESCRIPTION, column B WEEK COMMENCING DATE and column C DAYS LOST.

The table will be completed by the managerís as the info becomes available to them.

I will be collating the data on another worksheet and need a formula that will look in column B for all instances of 01/10/07 and then sum the corresponding cells in column C, then do the same for 08/10/07 and so on.

I have attached an example of a page.

I thought it may be VLookup or Sumif, but I donít know how to go about it.

View Replies!   View Related
Getting A Sum Of Numbers From A Particular Column.
I would like to Enter in a Catagory Letter (A, B, C, D, or E) in Cell B3, and a starting index number in Cell B4 (the index should range from -3 to 21) and Ending Index Number In Cell B5 (the index should range from -3 to 21). Need to using functions to get excel to display the sum of the values in the appropriate Category column but only between the rows designated by the starting and ending index values. I am very lost and dont know where to start. I have tried a muddle of IF and LOOKUP and SUM functions to no avail.

View Replies!   View Related
Add SUM To End Of Each Column
I want to write a totals procedure to insert a sum() at the bottom of each column in a usedrange. I thought I could do something like this:

Dim c As Column
For Each c In usedrange
' insert sum() at bottom
Next c

However, column is not a valid object. How do I do this?

View Replies!   View Related
Add Numbers Dynamically Down A Column
In the attached sample workbook I am trying to add the vendor number down the column H for each PO. I have copied a few of the numbers into the column, (in red), to show the desired result.

Basically, I will have a report daily with a variable number of suppliers, and variable PO's for each supplier. I need to add the vendor # to each row.

View Replies!   View Related
Add Two Columns Together And Then Divide The Sum By Another Column
I may not even be calling it the right thing. but let me explain what i'm looking to do. i've got three columns on a spreadsheet and i need to be able to add two columns together and then divide the sum by another column. so something like this:

4+4/636 = 79.5

d2+f2 (divided by) h2 = 79.5

View Replies!   View Related
Add A Column Of Numbers, But Ignoring Negatives
I'm trying to SUM a column, but it has a negative number in it. I want to sum the column but ignore the negative number.

I.E.
5
46
12
-15
3

so the total would be 66. How is this possible or would i have to use another formula instead of SUM.

View Replies!   View Related
Add Up Numbers In Column Based On Text In Another
I quickly put together an inventory form on our company server where employees can essentially just enter part numbers, quantities, and a few other things, rather than write everything out. So what might happen is, an employee puts together a list of 10 items with their respective quantities, but a few days later, another employee pulls up the spreadsheet and needs to add a few more of a part already listed. Protocol for the company is to do a separate line, rather than add it to the line where the item is already listed. What I am trying to do is, create a separate sheet within that workbook, that simply lists the part numbers, in order, with their total quantity. I have attached a basic spreadsheet showing what I would want, with a tab at the bottom labeled, "What I want."

View Replies!   View Related
Check & Add Sequential Numbers In Column
I have two columns A and B filled with numbers. Column A has the identifier number and Column B has number that represents intensity for the data set.

Column A can be anything from 75-1000, however, sometimes the adjacent rows are not sequential (i.e. 101, 102, 104).

1) Is there a way to automatically check for skipping numbers in Column A.
2) When it finds a skipped number, insert a row for column A and B.
3) Then put the correct number in Column A (i.e. 103) then put 0 in for column B

View Replies!   View Related
Add & Generate Unique Numbers In Column
I want to add & generate unique numbers in a column of similiar words..

For Instance:

RED
RED
RED
BLUE
BLUE
BLUE

etc..etc..

I want it to look like this:

RED1
RED2
RED3
RED4
RED5
BLUE1
BLUE2
BLUE3

I want infinite numbers next to the same wording but unique.

I have 2 rows A & B.. NAME & MOBILE PHONE Title in line 1

I am not to familiar with excel. Step by Step please, anyone out there.

I saw a similar posting, but the formula did not work out for me.

Then i am going to save the file as a CSV

View Replies!   View Related
Basis SUM Macro: Adds All The Numbers In A Column
I would like to have a macro which adds all the numbers in a column. The problem is that sometimes there are less sometimes there are more numbers. What I would like is, that the macro to sum the numbers right under the last cell which contains a number.

View Replies!   View Related
Count / Sum Numbers In Column Where Specific Text Exists In Adjacent Cell
One has numbers the other has "YES" or is blank. I want a formula to look at the second column and where there is a "Yes" then count the number in the same row in the first column.

View Replies!   View Related
Cell Sum :: Trying To Add The Numbers In A Cell
I am trying to add the numbers in a cell.

A1 12345 - the formula would be in A2 and would return 15 (the sum of 12345).

View Replies!   View Related
To Add Up Numbers In Column E If The Corresponding C Cell Has A "P" In It
I'm trying to add up numbers in column E if the corresponding C cell has a "P" in it. The tally is going into another sheet called "Unit Types" and the data is in a sheet called "Enrolment numbers". I tried doing Sum if =SUMIF(C1:C1000,"P",[E1:E100]) but I know I'm way off!

View Replies!   View Related
Conditional Formula: If Text, Repeat As Number To Sum, Else Sum Numbers.
I can get only so far, then stumped:3 columns (Hours, Rate, Amount). "Hours" is a 'List' with data from from another sheet. Data is named 'Worked'. 'Worked' is all 2 decimal numeric (represents total time worked), except first item called "Live In"
IF 'Hours' is "Live In", I can use: =IF(A1="Live In", SUM(B1*1))

How can I make it conditional so that if it's not "Live In", then it will SUM(A1*B1)?. SideNote: 'Worked' LIST has total time with minutes expressed as 1/4 of hour (i.e., 1.25 = 1 hour, 15 minutes).

View Replies!   View Related
Add Sum To End Of Range To Sum All Cells Above
I'm getting a Type Mismatch (error 13) with the following:

Range("I1").End(xlDown).Offset(1, 0) = "= Sum(" & Range("I2", Range("I2").End(xlDown)) & ")"

Basically I want to do an autosum on the first blank cell for a list of numbers in a column

View Replies!   View Related
Sum In VBA: Sum The Numbers If The Match Occurs In A & K
With Range("H2:H5000")
.FormulaR1C1 = "= SUMPRODUCT(('Data Sheet'!R2C11:R5000C11=RC1)*('Data Sheet'!R2C81:R5000C81=""G - Prior policy incident handling errors""))"
.Copy
.PasteSpecial Paste:=xlPasteValues
End With

Right now its simply counting, but what I need it to do is to sum col L if col A matches col K. Col L contains numbers, and I need a sum of those numbers if the match occurs in A & K.

View Replies!   View Related
Sum Of Numbers Excluding Negative Numbers
How can I get the sum of a range excluding any negative numbers?

I've thought about using a new column and using if statement to separate but it would be easier if i could use the same column.

View Replies!   View Related
How To Add Multiple Formulas
I'm trying to add the sum of two seperate columns on two seperate criteria.

The formulas needs to add all cells in range B9:B149 that contain the word "OPEN" and that also contain thw word "MF" in the cell range of C9:C149 to give me a numerical total.

I tried using the IF, COUNTIF, SUMPRODUCT but the mutliple criteria is beyond me.

View Replies!   View Related
Add Row With Formulas
I've got a generic question here about adding a row with formulas above the subtotal line.

In the table below I have some simple rows of sums and a subtotal row at the bottom.

If a macro is run how can I insert a new row with the same two formulas in the row one above the Subtotal row....

View Replies!   View Related
Add New Row With Formulas
I am working on a sheet that will have a large range of rows used. There is formulas within a few cells in each row specific to that row. When the user enters data into colum A of the last empty row would there be a way to insert two new rows below that row with formatting and formulas? The toughest part for me has been keeping the totals at the bottom updated. I attached the sheet to help explain if I haven't done a very good job at explaining it.

View Replies!   View Related
Add Rows With Formulas From Above
I am trying to use a button on the top of the sheet to add a line from wherever they are in the worksheet with the formulas on the above row. Example: 0=formulas

0---------------0---------------------0--0
they are here beneath the line
they press the button on the top of the sheet
0---------------0---------------------0--0
the row is created above the current cell their in with the exact formulas intact.
I am trying to have the sheet protected (so the formulas are not seen) but in order for the user to add a line they have to copy and paste the formulas above to the new line which can't be done when formulas are protected.

View Replies!   View Related
Minimum Of 2 SUM Formulas
I am calculating several cells which in certian circumstances I want the amount to be limited to a max amount. I have a cell that will be used to indicate whether or not to limited the amount, but I am not able to come up with a viable formula. Here is my SUM Formula info:

My current calculation
=SUM(S16:S18,S21,E22:R22)
The cell that will drive the restricted amount
I7(H or S). If S is used in this cell the amount should be limited to 80. If H is used then the calculation should be exact.

View Replies!   View Related
Add Formulas To Range With Macro
I want to link cells from one sheet (totaldata) with the corepsonding cells in an another sheet (data), the problem is that the columns in these sheets to be linked are not placed in the same distance from each other - so a standard formula can't be applied her. I came up with the following piece of

Sub total()

Worksheets("totaldata").Activate

Range("C3").Select

ActiveCell.FormulaR1C1 = "=SUM('data'!R[2]C:R[79]C)"

ActiveCell.Offset(0, 1).Activate

ActiveCell.FormulaR1C1 = "=SUM('DE PL'!R[2]C[7]:R[79]C[7])"

This code links only two cells in the totaldata sheet, and this way I would have to make this code execute additionally over 30 such lines, which would force me to change the C[7] parameter to C[14] etc etc manually.

Is there a way to speed it up without having to produce such a long code?

View Replies!   View Related
Adding Numbers With Formulas
I'm tring do a simple formula: =CA3+BP3+BE3+AT3+AI3+X3+M3, but because the cells I am adding have formulas in them already it is returning a error. Can I add them using 'sumproduct' formula, or is there another way?

View Replies!   View Related
Text And Numbers In Formulas
B1, C1, E1, F1, H1, I1, K1, L1, N1, O1 will contain 1 of 10 different names (John, James, David, Jack, Alex, Aaron, Jason, Stan, Robert, Will)

I need A25 to pull the info from B1
A26 to pull the info from C1
A27 to pull the info from E1

If B1 and E1 have the same name then A27 should be blank.

Also C15, G15, and K15 contain a number. If A25 is not blank, then B25 should equal C15; If A26 is not blank, then B26 should equal C15;
If A27 is not blank, then B27 should equal K15. However, if B1 and E1 contains the same name, then A25 should equal C15 + K15.

If B1=John C1=James E1=David F1=Jack
and C15=10 G15=15 K15=20

then A25=John A26=James A27=David A28=Jack
and B25=10 (C15) B26=10 (C15) B27=15 (G15)

But if B1=John C1=James E1=John F1=Jack
and C15=10 G15=15 K15=20
then A25=John A26=James A27=(blank because John is already listed in A25) A28=Jack
and B25=25 (C15+G15) B26=10 B27=(blank) B28=15(G15).

View Replies!   View Related
Ignore Numbers In Formulas
I have several excel spreadsheets cataloging the right ascension transit times of various extrasolar planets. I need to convert all the times (in 24-hour format) from UT to PDT (that is, subtract seven hours). Unfortunately, each transit time is included in the same cell as the date the exoplanet's star is visible, like so:

http://img26.imageshack.us/img26/3998/transit.png

Now, I have a lot of data that I need to convert. I do not want to go through manually and change each cell's value manually. Unfortunately, I cannot figure out a way to use a formula to do so; I do not want to modify the date (the top value of each cell), and the colon separating hours from minutes screws up the rest of the formula.

So, how can I use excel to automatically subtract seven hours from the bottom value of each cell, without doing anything to the rest of the numbers in each cell?

View Replies!   View Related
Combine Two Formulas With Average And Sum
Working on the same simple chart NBVC helped me on, but this is for AVERAGE instead of SUM and with an added variable.

View Replies!   View Related
Multiple If Formulas Plus Sum Formula
I am not sure what the best way to describe this is but here I go.

Year Account Net Amount

1 2006 Travel Expenses $5,000.00
2 2007 In Kind Time $2,500.00
3 2008 HR Time $3,000.00
4 2006 Travel Expenses $1,500.00
5 2006 In Kind Time $2,500.00
6 2007 Travel Expenses $6,000.00

I need to create a formula that will say: If column A1:A6 has a ,2006, and column B1:B6 has "Travel Expenses", than Sum C1:C6. The answers should be:

2006 Travel expenses = $6,500
2006 In Kind Time = $2,500
2007 In Kind Time = $2,500
2007 Travel Expenses = $6,000
2008 HR Time = $3,000

View Replies!   View Related
Combine Two Formulas And Add A Condition If True
I have two formulas that I have worked out to deliver the results independently. I would like to join them together into one formula and add an If condition that if the two match then add a "+" to the end of the string.

#1 finds the base value :
=IF(ISERR(FIND("/",I2)),I2,LEFT(I2,FIND("/",I2,FIND("/",I2)-1)-1))

#2 verifies the value is a valid color:
=INDEX(M1:M41,MATCH(J2,M1:M41,0),1)

I would like to join the two formulas together and if they match then add a space, " " and a "+" to the end of the string. If there is no match then return the base value.

View Replies!   View Related
Add IF Statement To EXISTING Formulas Over Specified Range
I need a script that will search through a selected range of cells and add a simple IF statement.

For simplicity, lets assume the desired range is Q36:Q40. (The range is much larger than that.)

The existing formula is:=IF($Z37="%Sales",Q$9*$Y37,IF($Z37="%BS",Q$78*$Y37,IF($Z37="%YOY",O37*(1+$Y37))))

I would like to keep all existing forumulas, just tack on an IF statement before hand that says if a certain cell (Q2) reads "CoPrep" then do nothing, otherwise use the existing formula. I envision this as =IF(Q2="CoPrep","",IF($Z37="%Sales",Q$9*$Y37,IF($Z37="%BS",Q$78*$Y37,IF($Z37="%YOY",O37*(1+$Y37)))))

FYI, the background to this problem is that I am in the process of making a financial forecasting model that allows for choices of company prepared forecasts, hence "CoPrep", or model forecasts based off of other critera, both of which can be sensitized.

View Replies!   View Related
Add Array Formulas To Mutiple Ranges
I would like to set up VBA codes to generate a variable number of transition matrices. I would like to know how I can define dynamic ranges instead of coding each and every range. In the codes below, I have to define each range one by one instead of using a loop.

Sub TransitionMatrix()
Dim P1 As Range
Set P1 = Cells(2, 2).Resize(3, 3)
Dim P2 As Range
Set P2 = P1.Offset(5, 0).Resize(3, 3)
P2.Cells(0, 1) = "P2"
For i = 1 To 3
For j = 1 To 3
P2.FormulaArray = "=MMULT(" & P1.Address & "," & P1.Address & ")"
P2.BorderAround Weight:=xlMedium
Next j
Next i
Dim P3 As Range
Set P3 = P2.Offset(5, 0).Resize(3, 3)........................

View Replies!   View Related
LEN And MID Formulas With Numbers
I am trying to be able enter an a dollar amount into one cell and have the numbers separate into their own cells further down the page. It works basically but if I have room below to hold 10000000.00 and I only enter 100.00, the output looks something like #######100.00.

I have an IF formula using LEN and MID formulas in each of the cells. So if nothing is entered, a VALUE error appears in each cell. Is there a way around this? I will paste the formula and the Excel screenshot using the lovely HTML maker below: ...

View Replies!   View Related
Is There A Non-macro Way To Autosort Numbers With Formulas
I need to find a way to autosort a series of numbers, inputted manually for example, in cells A1 through A15. The autosort function needs to put the numbers in descending or ascending (either way, doesn't matter) in cells B1 through B15.

In effect, if the numbers inputted into the first cells change daily, then the correct order of these be automatically sorted so that they are in a specific order.

The closest I can come WORKS, but I'm using about 300 filter formulas to do so.

View Replies!   View Related
Color Format On Numbers Vs Formulas
Is there a way, WITHOUT VBA, to have a cell turn color if a user overlays a function with a value. Using conditional formatting or an easier way if possible, I would like to have any cells that the user overlays with a number to have a different background color.

I know I could use an event-driven macro but am trying to find a function that can check a cell to see if it contains a formula (or function) or a value.

View Replies!   View Related
Macro Code To Add Formulas To Reference Different Sheets
How do I change the code so that the macro looks up the next sheet (instead of by sheet number, which is how the code was recorded) and transfers data to the summary page until there are no more new sheets. See attached zip.

View Replies!   View Related
Formulas That Can Extract Data By Taking Numbers
Is there a formula that can extract data by taking numbers within a specific range and assigning a number to the data within that specific range?

0-25=1, 26-50=2, 51-75=3, 76-100=4, >100=5

View Replies!   View Related
Seeking Way To Display Numbers Underlying Formulas
I'm looking for an answer about how I can show the numbers underlying a
nested IF function. The formula works fine, but I need to be able to show
how I arrived at the numbers that I did. Here is an example of one of the formulas:

=IF(B9=1,(B4*Data!G5*Data!F5),IF(Calculations!B10=2,(Calculations!B5*Data!G5*Data!F5),IF(Calculations!B11=3,(Calculations!B6*Data!G5*Data!F5),0)))

Instead of the reference to the cell, I would like the formula that the cell represents. I know that I could go through individually and pull each piece apart with control F9, but since there are numerous cells and because the data changes every time I create a new budget, it would help if I could have some way to display it all with one action.

View Replies!   View Related
Multiple Nested IF & SUM Functions/Formulas
I am currently having trouble with what I thought was a simple IF statement. As you will see from the formula I want to complete a statement for every month of the year but Excel will not let me go past July. Is there a limit to the number of arguments in an IF statement and how do I overcome this? =IF($A$3="Jan'08", SUM(C7),IF($A$3="Feb'08",SUM(C7:D7),IF($A$3="Mar'08",SUM(C7:E7),IF($A$3="Apr'08",SUM(C7:F7),IF($A$3="May'08",SUM(C7:G7),IF($A$3="Jun'08",SUM(C7:H7),IF($A$3="Jul'08",SUM(C7:I7),"n/a")))))))

View Replies!   View Related
Add Multiple Formulas In Row & Auto Fill Down
I am trying to do canít really be recorded, at least i donít think it can. I have a report that I run off and after I loaded it in Excel I then have to add in five columns at the end of the sheet. These are always in the same columns: R,S,T,U,V.

These are the formulas I have to then input
R =IF(G2="no invoices",A2,"")
S=IF(I2="Match",A2,"")
T=IF(I2="Sent to AP",A2,"")
U=IF(I2="Force Settled",A2,"")
V=IF( COUNTIF($R$2:$U$10054,A2),A2,0)

Note for column V, the range R2:U10054 would depend on how many rows is in the report, its just in this example the report does have 10054 rows. The columns would always stay the same. I would then copy the formulae down for the number of rows that is in the report and filter column V by entries that equal zero to give me the rows I am looking to analyse. Is this the type of thing that can be written as a macro so that everytime I have a new report open in Excel I can just run the macro and it will do all of this for me?

View Replies!   View Related
Add AVERAGE Formulas To Cells Using Variables In Macro Code
I am trying to have the formula =( SUMIF(S2:S125,">0",S2:S125))/(COUNTIF(S2:S125,">0")) Put into cells through vba. What I did to get the formula is typed it into an excel cell to find the average of a group of cells that do contain blank cells. The formula brought out the proper results. So all I did is put the formula into vba and changed the appropriate parts. The range will not be the same of course, but there is what I have.

ActiveCell.Formula = "=(SUMIF(" & ActiveCell.Offset(orow + 2, 0).Address & ":" & ActiveCell.Offset(-1, 0).Address & ","">0""" & "," & ActiveCell.Offset(orow + 2, 0).Address & ":" & ActiveCell.Offset(-1, 0).Address & "))/(COUNTIF(" & ActiveCell.Offset(orow + 2, 0).Address & ":" & ActiveCell.Offset(-1, 0).Address & ","">0""" & "))"

When I show a msgbox for ActiveCell.Formula (Msgbox activecell.formula), it shows me the formula as above - =(SUMIF(S2:S125,">0",S2:S125))/(COUNTIF(S2:S125,">0")) Except instead of the s:ranges, it shows $L2:$L125 (which is correct). The quotes do show up around the criteria in both the sumif and countif. I keep receiving an error. I put a msgbox err.description & ", " err.number dialog in. The error comes up as ", 0" (no quotes).

View Replies!   View Related
Column SUM Produces #N/A (Vlookup To Find Values That I Want To SUM)
I have a column using Vlookup to find values that I want to SUM.

Some of the look up values produce a #N/A and result in a total sum of #N/A.

How do I get the SUM of a column of numbers when all of the cell values are not in fact numbers.

View Replies!   View Related
Add New Rows(preserving The Formats And Formulas Of Previous Ones) Dinammycally And Automated
I have a very large table with 7000 rows and each time I open the file it takes excel about 1 minute to open it.Initially all cells in the rows are empty. Each row in the table has the same formats and formulas(eg. in J106 I have =IF(C106=1,1,"") and in J107 I have =IF(C107=1,1,"")).So the excel allocates all the memory and does the formatting and computations beforehand. How can I add new rows(preserving the formats and formulas of previous ones) dinammycally and automated? An example will be if I start enter data in a row add another row at the end of the table or a button that when I press it adds lets say 100 new rows in the table. Below is the table, the rows in the table to which I add data start form C15 to C7014.

View Replies!   View Related
Deleting Rows Matching Numbers From Numbers In Column
I want to delete rows in whole list and numbers of rows to be deleted I have in for example C column. How to do it?

View Replies!   View Related
Delete Numbers And Replace With Numbers From Adjacent Column
Is it possible to delete a column of numbers then replace those numbers from adjacent columns and the adjacent columns are then filled with the numbers adjacent to them

View Replies!   View Related
Format Formulas, Constants, Numbers & Text Cells Differently
I am attempting to write a VBA function that will add textual formatting to each cell that has content. I am just learning VBA; so far, as an example I have

Sub NewSub()
i = 1
j = 1
Do
Cells(i, j) = "'" & Range(i.j).Value & "',"
i = i + 1
Loop Until i = 40
End Sub

but, as I'm sure you'll notice, it does not work. In essence I want to wrap quotes and follow with a comma each cell that contains any content. The actual content test I haven't gotten to yet.

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