Totalling Columns When Both Are Populated

Dec 4, 2006

I want to total column A & total column C but only if there is an amount in both cells on the same row

Can I do this with an array?

Do the columns have to be adjacent? I could make them if necessary.

Data
A C
11 12
21 0
0 17
15 15
11 9

in this example we exclude rows 2 & 3 from the total because one cell contains zero or is blank.

Total Column A = 37 (11+15+11)
Total Column C = 36 (12+15+9)

View 11 Replies


ADVERTISEMENT

Calculate % Change Across 4 Columns When Only Some Columns Are Populated

Mar 24, 2014

This is a piece of a spreadsheet meant to track patient Range of Motion performance over a max of 4 weeks. How do I calculate % Improvement [write the formula for column J] to account for the fact that sometimes a patient is discharged after being seen 2 weeks OR 3 weeks or 4 weeks. I don't want to change the formula every time.

The SUMMARY % Improvement in J7 - will be changed to the average of each individual patient % Improvement from column J.

Looks like I need a dynamic range from what I can see from Googling. Do I need to use Offset ?

View 6 Replies View Related

Columns With Empty Cell Need To Be Populated With Value Directly Above?

Oct 12, 2011

I've populated a temporary worksheet with several columns of data. In this example my Amount Column has several null cells. What I need to do is write a macro to find any nulls and populate the nulls with the data in the last populated cell above it.

Example: the four empty cells below Account (524150) also need to be populated with 524150. The cell immediately below 524200 also needs to be populated with 524200 and the 3 empty cells below 512800 also need to be populated with 512800. Week to week the number of rows will change and the nulls will also change.

View 8 Replies View Related

Remove Blanks Across Columns A Through E / Move All Populated Cells In Each Column To The Top

May 29, 2013

Some code that will remove blank cells from across five columns (A:E) so that after running code all data in each column moves to the top of sheet?

View 9 Replies View Related

Totalling Hours From One Day To The Next

Oct 15, 2008

My company works 24/7 and with that some people on nights starting prior to midnight and then finishing after. Of course the "regular" formula works well in calculating between 00:00 onwards but I am getting an error when for instance the person starts at 20:00 and finishes at 04:00. I have tried numerous ways but still the error persists.

View 5 Replies View Related

Totalling With VLOOKUP

Apr 8, 2009

The problem I am having is that I would like to total using the VLOOKUP (or any other command, which i do not know off). Here is the scenario

I have two sheets.

In sheet 1 have:
Column A with the weeks (date).
Column B with numbers.
Column C with numbers.

In sheet 2 I have:
Cell A1 with the date (which I type in)
Cell A2 displays the number (according to the date that I have typed in Cell A1)

In Cell A5 I would like to display the total. If in Cell A1. I type 13/04/09 it would total 30 (06/04/09 & 13/04/09). I have attached a spreadsheet for reference.

View 2 Replies View Related

Totalling Hours Per Day

Oct 19, 2006

On my spreadsheet I'm after a formula for cells E2 and F2 that I can drag down and it automatically populates the cells relevent to the day with the total hours for the Sessions (E2) and the total hours per day (F2). Hope this makes sense, but I'm sure you'll gather want I mean from the spreadsheet.

View 9 Replies View Related

Totalling VLOOKUP Data With #N/A's

Jan 6, 2009

I am currently building a data sheet using VLOOKUP. When there is no data to lookup it returns #N/A, which is fine. The problem is when I go to total these columns because of the NA it returns NA in the total box. Having tried the if isna formula I am now returning #VALUE!. I may be doing the IF ISNA formula wrong.

View 4 Replies View Related

Totalling Data With Autofilter On

Apr 8, 2009

I have 3 columns of data and am using an autofilter to sort it. At the bottom I have a formula =subtotal(9,cells requested) which magically shows me the sum of the data showing only (excludes all the figures which are hidden - it's fabulous). However I was wondering if it is possible to have the same formula but to count the number of things shown instead of sum and another to average.

View 3 Replies View Related

Totalling A Win Loss Column

Sep 27, 2009

I have two columns for a Home and an Away win-loss records for a team over a few seasons. The win-loss stats in each column are in the form 24-13 (2-two digit numbers with a hyphen in between). How can I get a total at the bottom of the column for all the win-losses?

View 9 Replies View Related

Totalling Cells With References To Another Sheet

Apr 22, 2009

I'm currently working on a summary page for the defects in the building we are working on.

I've done up a summary page which reference's cells in other sheets which contain a TEXT(COUNT formula. When I goto SUM these referenced cells in my summary page I keep getting it returning '0'.

Example of what I'm doing:-

Defects Column in Summary Page

411 --> referenced from =Basements!L1 --> L1 contains =TEXT(COUNT($C$8:$C$100),"0") formula

56 --> referenced from =Level1!L1 --> L1 contains =TEXT(COUNT($C$8:$C$100),"0") formula

33 --> referenced from =Level2!L1 --> L1 contains =TEXT(COUNT($C$8:$C$100),"0") formula

When I go to do a simple SUM of 411,56,33 via =SUM(D3:D5) it returns a zero?

View 6 Replies View Related

Assgning Cells A Number And Totalling

Jun 2, 2006

I've included a spreadsheet that show what Im trying end up with. Im looking to have a sheet that has a item indentification number along with a title and value. I would like to come up with a macro or formula that organizes the items by that identification number and totals them.

View 4 Replies View Related

Totalling From Multiple Pieces Of Information!

Jul 1, 2006

I work in HR MI and am compiling an equality spreadsheet. Out of everyone who is on the list I want to see how many men and women we have which I have figured out using = SUMIF(GENDER,"MALE",NUMBER) but from that I want to say theres 50 male in total and out of that 30 are White and 20 are Indian. Is there anything I can add to this formula so it looks at more than two defined sets of information??

View 2 Replies View Related

Totalling Random Amounts Of Rows

Aug 9, 2006

I have a 1500 row spreadsheet that will change every month. It's set up in three columns Name, Amount, Total. The Total column is supposed to hold the total of all the rows with the same name field. I.e.

4445-8889 12
4445-8889 8 20
5598-7785 10
5598-7785 10
5598-7785 20 40

The problem is that the number of identical named rows is different for each name and changes each month. I want to build a macro that will out the correct total in the last column of the last entry with the same name.

View 8 Replies View Related

Find Max Value In A Row When Another Row Is Populated

Apr 2, 2014

How to to find a formula which will pick the highest number in a row when another row is populated. For example, in the table below row 1 has some numbers, with rows 2-5 being populated with a Y. I'd like a formula to look across the rows individually and pick the highest number in row 1 (it should equal the numbers shown in column F.) when there is a Y in row 2. Then the same again for 3.

___A____B____C____D____E____F
1__30___40___20___35___45
2__Y____Y____Y____Y_________=40
3__Y____Y____Y____Y____Y____=45
4____________Y______________=20
5__Y______________Y_________=35

View 4 Replies View Related

Get Last Populated Row In A Range

Dec 7, 2011

My VBA is very rusty, and I can't get the following code to work. I need to workout the number of rows that contain data in a range so that I can eventually write a formula in a adjacent cell, but I keep getting errors (Type mismatch or Subscript out of range) at the first step!

Code:

Sub create_product_column()

Dim num_rows As Range ' The number of rows in the datarange
Dim my_workbook As workbook ' The name of this workbook
Dim my_worksheet As worksheet ' The name of the worksheet to work on

[Code]....

View 4 Replies View Related

Count Non-Populated Cells

Jul 23, 2014

Is it possible to count cells that all have a formula in them, but only count the cells that return a displayed result?

View 5 Replies View Related

Displaying A Value When Other Cells Are Populated

Jul 27, 2014

I'm putting the finishing touches to a grade sheet for the new academic year. I have one column that calculates a grade using the OFFSET function from a given number of points. However, I only want this cell to show a grade when the nine individual unit columns have been populated. If fewer than 9 columns have been populated, the cell in question needs to be blank. I've tried using COUNTA to count the number of populated cells and then linking that cell to an =IF(Q5=9... formula, but haven't been able to crack it yet. I'm probably missing something obvious...

View 8 Replies View Related

Find Max Value In Row When Another Row Is Populated With Different Entries?

Apr 2, 2014

Im trying to create a formula that looks along a row and then where theres an entry it looks at the top row and picks the highest number. I've attached a spreadsheet showing a shrunken version of the excel file, the answer to the formulas are in column F for each row.

View 3 Replies View Related

Hide Value When Cell Is Not Yet Populated?

Feb 19, 2013

how to hide a value on a cell when another cell is not yet populated?

like for example:

A1 is Blank A2 has a formula of workday(A1,2) a date will appear on the A2 cell and I want not to show or be hidden the date in A2 until A1 is populated

View 3 Replies View Related

Spreadsheets Populated By Scanners

Jun 3, 2013

I am trialing a WASP scanner that populates a excel worksheet. I am reading Item number (P12345) quantity (Q123) etc.

Currently all readings are in column A

A1 is p12345
A2 is q123
A3 is p123456
A4 is q123

I need to have all item numbers in one column and all qtys in another column and any other data I read in separate columns

the set up or the extraction from column into columns for item, qty, etc

View 2 Replies View Related

Populated In Combobox UserForm

Mar 22, 2009

I have more problem when work with three combobox, will you find me the code to solve this problem.

View 2 Replies View Related

Finding Out If A Cell Is Populated

Jun 4, 2009

I am now looking for a command that will return if a cell is populated. I.e. I need something that will find out which cell is the last one populated in a column (populated = contains data) and then will move 2 cells down, and then will enter some data into the following cells.

View 4 Replies View Related

Get Cell To Become Hyperlink After It Has Been Populated?

Jul 12, 2012

I am trying to get a cell to become a hyperlink after it has been populated.

For Example:

If cell H42 of Sheet 1 = [ X ] Then create a hyperlink to cell B2 of sheet 2.

I have been trying quite a few different things the latest I have written is the following:

Sub Macro1()
Dim cell As Object
Set cell = [ X ]
If H42 = cell Then
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:="", SubAddress:= _
"Sheet2!B2", TextToDisplay:="[ X ]"
End If
End Sub

View 2 Replies View Related

Copy Last Populated Cell

Jan 23, 2013

I am trying to write some code to choose the last "comments" entered in column 13 and then copy the data to B17 on the specified sheet below.

I get an Excel Error Excel cannot complete this task with available resources. Choose less data or close other application THEN a VB error Method'open' of object 'Workbooks' failed

Code:
Dim MyMgr As String
Dim whichsheet as string

MyMgr = Range("D10")
whichsheet = Range("D11").Value

If MyMgr = "Manager1" Then
Set myBook = Workbooks.Open("destination", Password:="manager1") 'Home

[Code] ........

View 3 Replies View Related

How To Catch Last Populated Cell In A Row

Feb 12, 2013

I have to create a formula to fine difference between 2 numbers.

There are columns A to Z.

Values will be populated in A1 to Z1. Sometimes the value will stop in between itself. For example H1.

So, I need a formula to catch the last populated cell (H1 in our case) and then find the difference between the value in its previous column.

H1-G1 should be the result I should get.

View 6 Replies View Related

How Many Cells The Data Has Been Populated With

Mar 3, 2008

I want to fill down and across a formula but the ranges wary depending on how many cells the data has been populated with.

At the moment i'm using the autofill function but can i use a do until function:

Range("F4").Select
Selection.AutoFill Destination:=Range("F4:EK4"), Type:=xlFillDefault
Range("F4:EK4").Select
Selection.AutoFill Destination:=Range("F4:EK1838"), Type:=xlFillDefault

View 9 Replies View Related

How To Get The Last Populated Row/cell In A Column

Sep 30, 2008

I'd like to get a reference to the last row or cell in a column of data.

View 9 Replies View Related

Each ListBox Is Populated Via .AddItem

Dec 15, 2009

I have a userform (seen below) in which the user selects any number of ZIP Codes (right - ListBox2) after selecting a county/location (left - ListBox1.)

My dilema is that I need to somehow record the selections for EACH county/location, while making sure that when saving the selected ZIP's to the "Area Associations" sheet, I don't create duplicates. Of course any ZIP deselected needs to not be recorded to the sheet.

The "Area Associations" sheet is set up as follows:
[Any given row after row 1]
Column A = Area (Area is selected prior to the userform being displayed)
Column B - ??? = the selected ZIP's

The selected ZIP's do NOT have to be in any specific order, because I have a routine to search through the row looking for any instance of any particular ZIP Code.

FYI - Each ListBox is populated via .AddItem

View 9 Replies View Related

INDEX Returns 0 When Cell Not Populated

Mar 28, 2014

See attached formula:

"=INDEX(DATABASE.xls.xlsx!$AT$5:$AT$2001,MATCH(AR10,DATABASE.xls.xlsx!$O$5:$O$2001,0))"

Cell AR10 is my target cell and then there are 15 other cells that populate when the correct information is put into cell AR10, but if one of the other cells does not have any information in it, it returns a "0" (zero). I am trying to get the cell to show blank as when I print I don't want a "0" (zero) in every cell that has not got any information.

2 x cells are showing telephone numbers, 1 x landline and 1 x mobile - sometimes we don't have a landline number, so I want the cell to show blank not "0" (zero)

The cell format is set to "text", but I have tried setting it to "general", "number" and finally settled on "text", but all return "0" (zero) if we don't have a number for them.

View 6 Replies View Related







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