Divided Sums Of 2 Columns With Denominator Changing Based On Blank Values In Column

Dec 31, 2013

I am trying to create a sheet on docs.google.com that takes the sum of 1 row divided by the sum of another row removing numbers from the denominator if fields are left blank. Hard for me to explain so here is an example:

Counter
Column 2
Column 3

[Code]....

Leaving a blank value in column 2 makes it read 4/6 giving me 66%, Column 3 giving me 50%.

What I would like it to do is if there is a blank value in any column remove column one from the denominator.

Upon completion the total output percentage for column 2 should be 100%, and column 3 should be 75%.

View 3 Replies


ADVERTISEMENT

Changing Column Data Based On Another Columns Focus

Mar 4, 2014

I have 1 sheet called Setup which users enter their character name, their class, and their race, additionally the entire workbook manages data for up to 9 individual characters.

On another sheet called C|R|E, I have tasks listed that are based on each class type and each race type that are available. Currently there are nine classes and four races. Currently on this sheet each class and each race has its own individual data lists and such, and formulas are done in a way that user inputted data can be entered anywhere, but wont count unless the class and race match those selected on the Setup sheet. To keep the sheet short in appearance I used command buttons to hide/unhide classes or races not in use by the user.

What I was wondering is (and this could be hard to describe), can data in one column be changed to reflect data based on another column's focus? I will explain in more detail.

Column B contains the task information for each Class and Race. For example Cells B13-B51 for one class, Burglar. Columns D-L is where users enter data to show if the task is completed or not. In this example lets say the users first character listed on the Setup sheet is a Champion. What I want to do is check the Setup sheet Char 1. Then based on what Char 1 is selected as on the Setup Sheet, C|R|E B13-B51 data is changed to reflect it, IF Column D currently has focus. If Column E gets focus then B13-B51 changes based on the class selected on the setup sheet for character 2. and etc.

If this can be done I can remove the 13 different sections and have it down to 2 sections, one for class, one for race. For now I am using check boxes to hide classes and races they are not currently using, but would like to move all classes into one table and all races into one table to they dont have trouble with columns they have to skip over currently.

This is a sample of how I am currently working on the C|R|E sheet, the full code is much much longer since I am using so many command buttons.

View 1 Replies View Related

Changing Values In Column Based On Value In One Cell

Jan 12, 2009

Based on the attached (much simplified) spreadsheet, I want the values in the green cells on the "Month" page (B6:B10) to vary depending on the value in the yellow cell (B4), and for these cells to to look up the relevant column in the "Full Year" page - i.e. if B4 (on "Month") = Jan, look up C6:C10 in "Full Year"; if B4 = Feb, look up D6:D10, and so on. I know I can nest IF functions in order to achieve this, but could be a bit messy. I'm sure there must be a simpler formula within Excel ... just don't know what it's called!

View 3 Replies View Related

How To Create Sums Of Columns Based On Date And Category Criteria

Nov 1, 2011

I have spent a good amount of time trying to create the below using botched IF functions, SUMIFS, SUMIF formulas etc.

Basically I have a sheet (called Sheet1) with the following columns:
A - Date (by individual day DD/MM/YYYY)
B - A catagory (so using the old example, Apples, Orange, Pears)
C - Price.

I would like to be able to create a formula, whereby I can sum the Total sales for each catagory across each month onto a summary sheet (sheet2).

I would use pivot tables, however am not sure how i can make all the require data appear permanently in the best way, especially if there is a one liner that can be done more easily. So far I have managed to create a sum dependent on month, but have been unable to encorporate the catagory.

View 1 Replies View Related

Conditional Format A Row Based On Changing Values In One Column

Jun 27, 2013

Is it possible to format a row of cells (B7:KX7) depending on the value in column (G7:G1000) changing?

For example column G might have the following value entered into them.

A
A
A
B
B
B
C
C
C

So all the rows containing the letter A would be formatted one colour, then it would notice it changed to B and format all the rows with the letter B in, then C etc... The letters would always appear in blocks of 10 or more (representing students in a group) so it wouldn't go A,B,A,B,C,D,E

I am not bothered about the letter being tied to a certain colour, it just needs to change when the letter changes. I'd have no more than 10 different variables in this column, meaning no more than 10 different colours to format. Formatting would be black text with different coloured backgrounds.

View 1 Replies View Related

Copy Cell Values From X Columns To 1 Blank Column

Sep 30, 2006

I got 3 columns of cell values as follows:

Demo 1
COL A COL B COL C COL D
_ 12 14 16
_ 32 12 18
_ EA LW RA

Demo 2
COL A COL B COL C COL D
12 12 14 16
32 32 12 18
EA EA LW RA
14
12
LW
16
18
RA

Can data of the 3 columns be copies (by vba code) to the blank col A in the exact sequence as shown in Demo 2?

View 2 Replies View Related

Transfer Sums In One Column Based On Date To Another Cell

Dec 24, 2009

Attached is an example of what I am trying to do.

I am looking to transfer the sums for a calendar month in one column to cells in another location for each month.

I put some notes in the sample attached, I appreicate any help getting this to work.

View 10 Replies View Related

Showing A Blank Cell When The Sum Is Zero. (Divided By Zero Error)

Aug 27, 2009

I want a cell to be blank if the sum is Zero. I am getting a divided by zero error, I tried this formula: =IF(SUM(C6/D6)=0,"",SUM(C6/D6))

View 4 Replies View Related

Count Unique Values In Column Based On Values In Other Columns

Mar 14, 2014

I'm running into an issue trying to calculate unique values in a Data column based on a few variables in other columns.

My current formula in Summary tab D4:D19 is
{=SUM(IF(FREQUENCY(IF(Data!$I$3:$I$66<$E$1,IF(Data!$A$3:$A$66=$H$1,
IF(Data!$C$3:$C$66=A4,ROW(Data!$I$3:$I$66)))),ROW(Data!$I$3:$I$66)),1))
+
SUM(IF(FREQUENCY(IF(Data!$I$3:$I$66<$E$1,IF(Data!$A$3:$A$66=$I$1,
IF(Data!$C$3:$C$66=A4,ROW(Data!$I$3:$I$66)))),ROW(Data!$I$3:$I$66)),1))}

This is currently counting the number of times a date value (data column I) appears for that name (A4:A19) in the data when meeting all of the conditions. I need it to instead count the number of times a unique date appears for that name with the additional conditions met (which all appear to work fine).

The results in the pink highlighted cells (Summary column D) should be:

Names starting with A - 3
All others - 2

I've left some other columns in the data with X's so that I can easily convert this back to my working spreadsheet.

View 2 Replies View Related

Changing Cell Color Based On Changing Values

Sep 16, 2009

This may have been answered on here but can not seem to find it. My situation is I have values in A1,A2 & A3 that are like counter reading so the value is always changing. What I am looking to do is change the cell color if one of the values is over 500 from the other two values. Say A1 is 3000, A2 is 3250 and A3 is 3500. I would like the cell for A3 to change color.

View 2 Replies View Related

Excel VBA To Sum Column Based On Values In Two Other Columns

Jul 9, 2014

I have successfully populated a website forms using Excel VBA. As a continuation of this task, i need to calculate the total of a column based on two other columns in the same worksheet.

Column A contains Date, column B contains 3 fixed alphabets (I, L and K) and column C contains time. I have attached a sample sheet here. sample.xls

How can i write a VBA code to find the sum of effort values of column C for each values in column B for a given date (value in column A).

View 9 Replies View Related

Sum Of 3rd Column Values Based On Nested If On 2 Other Columns

Apr 28, 2007

I have three columns as follows:

ItemsWeekEnding Count
a14/7/2007 10
a34/7/2007 3
a14/14/2007 11
a14/7/2007 5
a44/7/2007 6
a14/21/20078
a44/14/20072
a34/21/20071
a24/7/2007 6
a14/28/20077
a24/21/20074
a94/28/20079

I want to Sum Count values (column 3) for matching WeekEnding (Column 2) and Items (Column 1), example:

a1 4/7/2007 15
as a1 for this weekend is occuring twice.

I need the formula to do it in excel.

View 9 Replies View Related

Extract Values From One Column Based On Two Criteria From Two Other Columns?

Feb 14, 2013

In the attached, sheet 2 has a formula that pulls the Item (column B) from Sheet 1 based on Instocks (column F) being less than the value in N2. Would it be possible to add a second criteria to the formula in sheet 2? In short, can I pull the item from column B of sheet 1 into sheet 2, where in sheet 1, column F values are less than N2 AND where column G values are greater than O2?

I'd love to just vlookup the fill rate value and then filter it down, I know at some point I will be asked to weed it down a bit via a formula instead.

View 1 Replies View Related

Values In Sheets Gets Divided By 10

Mar 8, 2009

Excel 2007. Trying to enter a number in a cell in a spreadsheet

(a) opened with the "blank workbook" (new spreadsheet)
(b) created with Excel 2003 and opened in excel 2007
(c) created with Excel 2007 and emailed by someone who isn't having that problem on his Excel 2007 installation

Any number I type in is automatically divided by 10. The only way I seem to be able to prevent this is by entering a decimal point when I enter the number. Have tried several different formatting options, although in 2007 I can't seem to find how to "uncheck" fixed decimals. Tried General formatting and fixed decimal formatting, and nothing seems to work. Looked for hidden macros, none show up when I click on View Macros.

View 2 Replies View Related

Add Values Of Cells From Different Columns To New Column Only If Cells Are Not Blank

Feb 28, 2014

I have an excel file and what i want is to sum two different columns to a third one, however there are some important notes:

1. Column A has dates

2. Column B has numbers f.e. 25, 30, 35 etc. , which have to be added to dates of column 1 , so a new date will be created in the new column

3. Colums A and B are not next to each other.

4. Some cells of column A and column B are blank , actually columns are sth like this

A B C
5/2/2014 25
blank blank
8/5/2014 35
10/9/2014 30
blank blank

When a date value occurs in a cell of column A , then always a number will occur in column B

When a cell is blank is column A , then the respective cell of column B will also be blank

What i want is to add values of column A and B to create column C automatically ( each column has 1000 cells ) , however in case of blank cells , i want a blank cell in column C, not something like #####

Apart from this , i want in the future , when i expand column A and B , when values are entered there, i want column C to be created automatically.

View 11 Replies View Related

Single Cell In Column Be Divided Into Two Parts?

Nov 28, 2012

Question is this, "can a single cell in a column be divided into two parts?"

View 14 Replies View Related

String In Column A To Be Divided Into 2 Strings If Length > 50

Apr 8, 2013

I have a set of data in Which in column A is the name of organisation.

If string in col A is longer than 50 I need to split in and put in col B.

That would be simple however I need to do it in a smart manner: i.e. cut it to the nearest full word.

Example:

THIS EXAMPLE NAME IS TOO LONG TO FIT INTO 50-TEXT CRITERIA SO I NEED TO DIVIDE IT INTO TWO STRINGS

Incorrect; length = 98

THIS EXAMPLE NAME IS TOO LONG TO FIT INTO 50-TEXT
Correct; trimmed down to 48.

My question is about formula that can detect spaces and depending on those trim the string down adequatly:
to 50 if 50th char is preceeded by space; if not then check where is the next space going towards left. Once you find it cut the string there.

What formula I can use to get desired effect?

View 9 Replies View Related

Rows Similar Data Divided By Blank Row To Delete Data If There Are 6 Or Less

Apr 2, 2014

I have a lot of rows of data all divided with an empty row and if they are 6 or less all rows need to be entirely deleted any 7 or above need to be kept.

View 2 Replies View Related

Formula Based On Dates - Calculate Annual Salary Divided By 12

Aug 6, 2014

I've got a spreadsheet where the start date is amendable and this is what I wanted. E.g. start date is Jun-14 and I want the formula to to calculate annual salary divided by 12 in each month from June onwards until Mar-15 (Financial year is April to Mar) and the same way to not show anything in April or May as they started in June... How can i achieve this please as I tried IF statements and it doesn't recognise dates and years...

Link: [URL] ....

View 1 Replies View Related

Sum Columns And Highlight Lowest Three Of Sums

Oct 27, 2009

..............

View 12 Replies View Related

How To Fill In IF Function Across Columns Changing Column Ref Only

Jan 16, 2014

My formula in sheet "A" in cell D7 is this

=IF(Activity_Log!C2="BH",Activity_Log!F2,"").

What I would like to do with it is fill in row D7 to AH7 with this formula without changing the row reference in the IF function, only the column reference.

On the Activity_Log worksheet, my data is listed from cell C2:C32, which is selected from a drop down list, and F2:F32, which contains the formula =(E2-D2)*24.

I've attached a sample : Sample_MonthlyReport.xlsx

View 9 Replies View Related

Insert Columns And Automatically Changing Total Column?

Sep 25, 2013

I have a worksheet with data in columns F,G,H and I. There is a total in column J. (=SUM(F1:I1)

I've written some code that allows a user to insert additional columns. However, I'm finding it difficult to find a way of changing the calculation in the total column automatically when a new column is inserted.

View 1 Replies View Related

Changing Time Values In Column

May 6, 2009

I am looking for a way to simply change the values in column B (start time) back by one hour, for instance 06:00:00:00 would become 05:00:00:00. Because this schedule is a broadcast schedule, time is shown in 4 fields hour, minutes, seconds, and frames (hh:mm:ss:ff).
I can't find a way to quickly adjust it, and because my company broadcasts in a lot of different timezones, I spend a lot of time manually adjusting the values myself. It seems frustrating because I know excel recognizes the values, because it is capable of sorting them, of course that may mean absolutely nothing. I have attached a sample file that I hope should make my problem a little clearer.

View 5 Replies View Related

Sums The Values In A Range Only To The Date

Dec 19, 2008

Need to write a formula which sums the values in a range only to the date we mentioned. For ease sample date & requirements are highlighted in attached spreadsheet.

View 3 Replies View Related

Changing Values Based On Drop Down Menu Selection

Dec 15, 2009

Attached is the file i am working with. The table spanning from A:AA5:16 contains hours worked per day of the week with respect to the Project chosen from the drop down menus in A7:16. Cells in the range of F,K,O,R,U,X,AA7:16 total those hours worked on a daily basis. The table below should sum the total hours worked per day according to the Project selected in A19 from the drop down menu, with respect to the Project(s) chosen in cell range A7:16. For example, if i am looking for total hours worked Monday on Project RSB i select "RSB" from the drop down menu in cell A19, i want cell F18:19 to be the sum of cells A7 and A9, with respect to the Project selected from cells A7:16. If I select "FRG" from the drop down in cell A19, i want cell F18:19 to reflect the sum of cells F8 and F10.

View 2 Replies View Related

Changing Values Of Cells Based On Change Of One Cell Value

Jun 3, 2008

I am trying to do is to write a code that will change the values of cells B17:B25 to "false" when the user selects "true" from the drop-down box in cell B16.

Here 's my
Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Address = "B16" Then
If Target.Value = "TRUE" Then
Range("B17:B25").FormulaR1C1 = "FALSE"
End If
End If

End Sub

This is not working! Nothing happens when I select "TRUE" in cell B16!

View 9 Replies View Related

Ranges, Column And Changing Values Automatically

Oct 14, 2008

I m trying to get around here within the company I work for.

I'm interested to know how to set a specific range value e.g. "5 to 10" once a value is between those 2 numbers, and then if the value in the next row below is 34.12 it will be "30 to 35".

Here's an example code I constructed, but the darn thing just keeps on running

View 4 Replies View Related

Wrap Text For A Column Without Changing Values

Jun 26, 2014

I'm trying to execute something like this: [URL] ......

but without changing the cell value... I basically want a button that will wrap/unwrap all of the cells in the "B" column with one click. If i have to do the cell range for every individual cell in column B that's fine, but I can't seem to make the above example work while keeping the cell contents the same.

View 3 Replies View Related

Function That Sums The Values In A Range In Excess Of 2

Jan 14, 2009

I am trying to write a function that sums the values in a range in excess of 2. For example, if the cell is 3 add 1, if it is 5 add 3 etc.

Here is what i have so far, it compiles with no bugs, but it does not work in my worksheet. I wrote it in Sheet 1 (VBA) of the worksheet i am using it in.

View 2 Replies View Related

Create A Formula Which Sums The Values Associated With Several Defined Names

Aug 6, 2007

I am looking to create a formula which sums the values associated with several defined names. For example, I have a workbook with the following defined names SalesPerson1Total, SalesPerson2Total, etc. and these amounts are all sourced from multiple tabs. The amount of defined names (i.e. 'SalesPersons') is variable, therefore, I want the formula to read Sum the values of all defined names which are named with the following convention 'SalesPerson(X)Total'.

View 9 Replies View Related







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