IF Condition True THEN AVERAGE The Values

Jun 28, 2007

I'm looking for some help. I need a function that can check if each of two seperate values is less than one. If less than one then divide by 2. Then give me the average of these two values. So it could be that it takes 0.5/2=0.25 for one value and 3 for another to give me the average of 1.625.

View 9 Replies


ADVERTISEMENT

Return Values Of Adjacent Cells When Condition Is True Omitting Values Where Condition Is False?

Jan 15, 2014

Here's a simplified example:

ColA
ColB
ColC

Row1
A
Y
A

Row2
B
N
D

[Code] .........

I'm looking to return the values in column A adjacent to the cells in Column B equal to "Y". The kicker has been returning only the cells where the condition is true. Column C displays the desired behavior.

The closest I've been able to get is with a simple IF statement but I'm pretty sure the answer is a far cry away from there and likely requires an array formula. I'd prefer not to use VLOOKUP or OFFSET but will if the alternative is very complex.

View 7 Replies View Related

Calculate Average For Values In Range Of Data That Fulfill Certain Condition

May 20, 2014

I am trying to calculate average for values in a range of data that fulfill a certain condition viz. >1000 &

View 5 Replies View Related

Hide Checkbox TRUE/FALSE & Sum Values Adjacent To TRUE

Aug 2, 2009

I have a worksheet where I have around 300 rows, each with 7 columns. What I want to do is add a checkbox to each column. I plan on setting non-applicable checkboxes to mixed status and locking the worksheet. I will unlock applicable checkboxes and sumif or countif their value according to row-based scoring, for example, each checked checkbox represents a value of 3. I do not know VBA and have chose to use the form control checkboxes rather than ActiveX.

I believe that a formula for this would be something like: =SUMIF(B1:B3,True,"3") or =COUNTIF($B$1:$B$3,True)*3

I am wondering firstly if I have that right and secondly if there is a way to stop my checkboxes from displaying labels. Currently, if I click on one it displays True behind the active checkbox. If I uncheck it, it displays False.

View 8 Replies View Related

Subtract Days Between Due Date And Today Date If Condition 1 And Condition 2 Are True?

Feb 2, 2014

I need cell (O4) to display days overdue or days remaining on an assigned task based on subtracting due date (M4) from todays date, but only perform days subtraction function if (M4) is not blank and only if task complete cell (N4) is less than 100.

Have the conditional blank cell figured out, but nesting another condition for the less than 100 complete cell. So in other words, I don't want cell (O4) to subtract days and display any error, irrelevant data if there is not any due date entered or the task is entered as complete...

View 3 Replies View Related

Pop-Up Notification IF Condition Is True

Dec 10, 2009

I have a row of values TRUE and FALSE from a IF statement..

If one or more are true can i get a notification to come up saying

"Rents are Due" Press ok to continue..

View 11 Replies View Related

Joining Value If Condition Is True?

Feb 19, 2014

Below is the data layout. I want to join values in value column if Condition is true. SO, for below situation answer should come ACE.

TRUE
A

FALSE
B

TRUE
C

FALSE
D

True
E

View 2 Replies View Related

SUMIF If More Than One Condition Is True

Mar 26, 2007

I want to perform a SUMIF if more than 1 condition is true. I can do a regular SUMIF if, for example, values in column A is > than 10,000, then SUM associated values in column F.

However, what if I want a SUMIF if values in column A is > 10,000, values in column B = “Yankees”, then SUM associated values in column F.

View 9 Replies View Related

Popup Window If Condition Is True?

Jul 7, 2014

I have following excel sheet.

IF condition is true then popup message window with Remark of corresponding columns.

Example : if during market time if Google current price fall below 295 then message window will appear SELL : Day support is break.

===============================================================================
Script--------------Current Price--------------Trigger Price---------------------Remark
===============================================================================
Axis Bank--------------500----------------------502-----------------------Buy : Resistance Break
Google-----------------300---------------------295-----------------------Sell : Day Support Break
HCL--------------------850---------------------865-----------------------Buy : First Sunrise Confirm
INFY------------------3215--------------------3150-----------------------Sell : Weekly Support Break

Current Price will keep moving up / down in live market

if current price > Triger price then popup window should come with BUY & Remark of that row

if current price < Triger price then popup window should come with SELL & remark of that row

View 8 Replies View Related

VBA Check Condition Until True Before Moving On?

Jan 17, 2012

Is it possible to have excel continually check if a columns used row count in a particular column is greater than a number before moving on to the next part of code?

The reason I'm doing this is because one formula will pull in data from bloomberg which can take some time (5 seconds or so).

Some other code that places formulas into other adjacent columns depends on the number of rows in the first column. So the code following the data pull wil fail if the above hasn't finished pulling yet.

I was thinking about doing something like a do nothing until true?

Here's what I have that is not working:

Do Until Range("A1:A6").Cells.SpecialCells(xlCellTypeConstants).Count > 5 Range("F1").Select
Loop

I expect that the number of used rows in column A should be greater than 5 once data is pulled. In this case I just had VBA select F1 until the count was greater than 5 before moving on. but I think it's interfering with the pull and will coninue to loop..

View 5 Replies View Related

Combine Two Formulas And Add A Condition If True

Jul 23, 2007

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 9 Replies View Related

Playing Audible Alarm If Condition Becomes True?

May 12, 2014

Can excel be made to play an alarm if a condition becomes true?

View 5 Replies View Related

If Formula Evaluates To True When Condition Is False

Nov 1, 2006

In E5, put "INSERT". In G5, put the formula

=E5="INSERT"

Should I be getting TRUE as the result? I'm getting FALSE. Is something wrong or am I going mad...

View 2 Replies View Related

Copy And Paste Data From One Sheet To Another If Condition Is True?

Sep 17, 2013

I need to copy the row data from sheet1, if the DEPT is HR and paste the same into sheet 2.

Qus:
data table ( Sheet 1)

SLEMP IDDOJ DEPT
1123419/17/2010HR
2123429/17/2010HR[code]......

View 1 Replies View Related

Copy Data From One Cell To Another If A Blank Condition Is True

Sep 7, 2009

I need to copy the data form Cell "C" to Cell "D" only if Cell "D" is empty

i have been using the following code but it will overwrite cell "D" regardless if data is present or not.

View 8 Replies View Related

Colouring Tabs Dependant On True / False Condition

Feb 21, 2010

I have "borrowed" the below code from a previous solved post, however am unsure how to adapt it.

View 7 Replies View Related

IF Condition Is TRUE Change Cell Value If Not Leave It Unchange

Jul 23, 2013

I've been looking for a way to get the needed result without using macro but i think it can't happen. I'm using excel for forecasting

I need a formula or script to Vlookup a value for me from another sheet if depending on the date.

If the Today date is > then the Date mentioned in Cell A1+15 days i want A2 till A167 to run a formula that would lookup a certain value in another sheet and replace the current value in A2 till A167

For example

A1= August
A2 = 20
A3 = 40 ......

I want when im in 15 August a formula that will replace the foretasted quantity 20 with the real quantity found in sheet 2. If I am not 1 August i don't want the formula to run.

View 1 Replies View Related

Macro To Copy Rows From One Worksheet To Another If Condition Is True

Oct 14, 2006

if there's a macro that can be run to check one worksheet. In this worksheet there is a column where the value should be "true". If this value is true, I'd like to copy the entire row of data into another worksheet.

There can be multiple rows of data where this condition is met.

View 3 Replies View Related

Change Cell Font Type If Condition True

Apr 26, 2008

I would like to know if there is a way to change the font type in a cell, if a condition is true in another cell. e.g font in cell C3 is Arial Rounded MT Bold and if condition is true in cell F3 then font is changed to Arial Narrow.

View 8 Replies View Related

Average Of Network Days Where Cell Value Is True

May 27, 2014

I am trying to get an average number of Networkdays where specific cell values are true. If the project Status is 'ongoing' or 'overdue' in Sheet2, what is the average Networkdays of the open projects for each project lead for Column C in Sheet1?

Sheet1
Column A
Column B
Column C

Project Lead
Count of Projects
Avg Age of Projects

John
3

[Code] ..........

View 6 Replies View Related

Average By Condition

Jan 10, 2008

I am trying to denote certain numbers with an asterisk (i.e. -10*) and then averaging a range of cells but excel thinks it's multiplication. Is there a way to ignore this? Range of numbers: 0 to -10. Tried left function but I need it to work no matter how many characters there are.

View 2 Replies View Related

Calculate Average If Condition Met

Apr 3, 2008

I have two columns of data. Column B is age column C is gender. I want to calculate average male age and average female age. Suggestions?

Sample
B C
57 f
53 f
47 m
40 f
42 m

Average female age is ___
Average male age is ___

View 9 Replies View Related

Average By Condition/Criteria

Oct 8, 2007

I am trying to create a macro using arrays to calculate average sales from a list of sale amounts that originate from different cities. Each city has its own city code and I want to display the average amount of sales for each city. The attached file is the template that ive created to do this. I am having trouble getting the arrays and loops to work. If anyone can help me out I would greatly appreciate it.CitySales2.xls

View 3 Replies View Related

Find Average With Very Specific Condition

Mar 14, 2014

Let's say I had the following data ...

47
50

50
50

44
50

46
50

Basically, I have 4 numbers, out of 50, as seen above...I want it so the last number (46 in this case) is special; what I mean by that is I want the following conditions to be met.

--If the special number is the lowest, just take the average of the four numbers, and divide it by 50
--If there is a (are) number(s) lower than the special number, then I want it to locate the smallest
---The smallest number should then be "replaced" by the special number (for calculations purposes only, not in the actual table)

So, in this case, since the special number (46) is not the lowest, excel would locate the lowest number (44), and calculate the average of 47, 50, 46, and 46 (the 44 was replaced by 46).

View 4 Replies View Related

Average Formula For A Specific Condition

Jul 30, 2009

I have been asked at work to get some averages of data from an excel sheet. I have attached a sample workbook of the data i will be using. On Sheet1 is the data that will be looked at and on sheet2 is a sample of the results i need to achieve. I can get the data on sheet2 easy if i knew that data was static but in my case the data is going to be dynamic, so i don't know how many records each person is going to have each time if that person shows up in the record set at all. This rules out on static ranges to gather averages.

So far what i came up with is i use a macro to copy all the "Names" column to sheet 2 and then filter that data so that each name is unique, sort like a "key" for looking up values. Now i need to get averages of "Total Hours" worked in sheet 1 and display it in sheet 2 for each "Name". I have a formula worked out and almost have it where i want it but cant seem to get the range of data i need to be looking at. I need to get the Average Of hours Worked Per Person Where "Wk End Date" is greater than 1/1/2008 and the "name" matches up with the name in sheet 2.

View 3 Replies View Related

Calculating Average Based On A Condition

Jul 27, 2007

I need to calculate the average of values in a particular column if some other column contains a particular text. For e.g. I would like to calculate average age of all the people who belong to the Comapny "XYZ". Which means that I have two columns here one is "Age" and the other one is "Company". So For all the people who belong to the company "XYZ", I need to calculate average age.

Company Age

XYZ 24
ABC 26
ABC 34
XYZ 30

My average should be (30+24)/2 = 27.

View 3 Replies View Related

Average Of Cells By Condition / Criteria

Feb 7, 2008

I have an Excel file ( book) that I use for scheduling my restaurant employees. There are currently formulas in place that retrieve information from cells on one sheet to a cell on another sheet. For example:

If, on the first sheet I schedule Joe the following section on Tuesday AM (D14), his name will be automatically shown on another sheet which list the section/floor plan in quick view.

I need a formula (on a third page) that will allow me to tell me how many times an individual employee has had this particular section. The sections are listed with a letter preceding it. Such as D**, P**, B**, SB**, etc.

View 3 Replies View Related

Macro To Preset Field With Text If Condition In Another Field Is True

Jun 9, 2006

I have a macro that imports a report. If the Charge Type in column A is BTOREPLX, I need to prefill the field next to it in column B with the text "REPLX", e.g. "REPLXCDROM". I've attached an example of the report.

View 5 Replies View Related

Multi-Condition Volume Weighted Average Calculation

Sep 13, 2006

I am trying to figure a way -- preferably in a single- cell formula -- to calculate a conditional volume-weighted average of a series of associated prices and quantities located in two separate columns based on the date (or dates) the transactions occurred.

I can do a simple Vol. Weighted Average (VWA) of all the prices and quantities over the five-day period with the following formula: (I have created named ranges for the price column (A1:A30=price), the quantity column (B1:B30=quantity) and the date column (C1:C30=date):

= SUMPRODUCT(price, quantity)/SUM(quantity)...

View 9 Replies View Related

AVERAGE IF Statement Based On Matching Condition And Date Ranges

Feb 22, 2009

I have created a spreadsheet which creates an average of feedback for trainers in a training company. The form adds up the feedback score into column L of the summary sheet and I have created a summary sheet which I want you use to calculate the average for each trainer.

I have cobbled together an array formula which creates the overallaverage for each trainer based on the named ranges entered via the form.

It looks something like this:

View 10 Replies View Related







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