I have made a spreadsheet that essentially works out a cost dependant on which department the work was completed in.

I have a seperate tab with the department names in column A and the charge rates in column B

On the second tab I have a spreadsheet that has columns A and B for hours used and material cost.

The third column is the dept name

The 4th column is the variable charge rate which changes dependant on which department is put in colum 3

The 5th Column is the total cost.

In the 5th column I have this formulae:

=VLOOKUP(F7,'Variable Costs'!A3:B16,2,FALSE)

This work fine.

However, the spreadsheet has about 200 entries per week and all the cells in column 4 and 5 are showing "#N/A" becuase there are no values for them to work with.

I don't like seeing this and normally will use the "IF" function to say that if column A and B are greater than 0 then do the sum, if not show "0"

This for some reason doesn't work with VLOOKUP. Not the way I am using it anyway

I have a row with values in successive cells. Some cells are blank. I want to conditionally format the cell text colour based on the value compared to the previous populated cell (i.e. compare A3 to A2. If A2 is blank, compare it to A1).

I am trying to use the SUMIF function in excel where I want to sum a range of cells greater than whatever is in cell D8. Here is what I tried to use, but it doesn't work. SUMIF(A2:A10,>D8,B2:B10)

The content in D8 can change because the user makes a choice from the drop-down list and a number pops up in D8 that is referenced to their choice.

I have a formula that calculates a revenue per day by taking total revenue devided by total days, from that I have another cell doing a VLOOKUP on that to find what tier that value falls under almost like a grade book, however I need the division to be rounded up if greater than x.xx5 because when I do the VLOOKUP sometimes it drops the product to the lower tier when I needed it rounded up. example:

I am revising a spreadsheet to automate some cells and size cable for my job. I am currently using the VLOOKUP command to search a table for the proper ampacity and return a cable size based on the minimum circuit amps. The problem however is the VLOOKUP command searches for a number equal to or less than my circuit amps and returns this cable size. I need it to return a size equal to or greater than the minimum circuit amps. How do I get it to lookup something equal to or greater than the minimum amount?

1. can i limit vlookup on sheet2 to search only a certain range of cells on a sheet1.

example, I want vlookup to look in sheet1, colum A - Y but only look between rows 1 and 100

2. If 1 can be done, and i happen to add a row in worksheet1 (making it 101 rows vice 100) will the vlookup code on sheet2 include that 101st row or do i have to redo the range manualy.

In another tab, I have a report where a row containd the project name, and I want to find the maximum value of the dates in the ither tab, where my project name matches the project name on the tab data I am given.

So, if I have "Project-C", I need to know the max of the dates in the row for Project-C; but I dont know what row that will be on in the other tab. For info such as 'data1' I have been simply using vlookup using the project name as a key.

Basically I have three sheets. MAIN, Sheet 1 and Sheet 2

Sheet 1 and 2 are in the same format

A3 down is a list of country names and then B3:I71 contains the data im interested in.

I've been trying to create a function that looks at B3:i71 to see if any cell in that range contains a value greater then $0.00. If it does then the row that contains the cell with a value greater then $0.00 (between col A to K) should be copied to sheet MAIN from cells B3 down. This should ultimatley produce a list of data for any row containing a value greater then $0.00. This process should then be repeated on Sheet 2 and should join the list below sheet 1.

I have spreadsheet with different 100s of columns of dates with 600 rows. The first row identifies which zone the data belongs to (North, South, East, West. NE, SW, SW1, etc...)

I want to write a formula to check how many dates in each column fall in 2015 or later years; This can be accomplished by writing a countifs formula.

Where it gets complicated is once i filter on the Zones;

I want the formula to give me the desired result - count of all CELLS where the year is 2015 or greater - WITH FILTERS ON.

I stumbled upon following sumproduct formula that gives count for visible cells, however when i apply the date criteria, i get incorrect result -

I have a column of percentages, and need to highlight the smallest value that is greater than 80%. This report is updated daily. I would like to know how to set conditional formatting to do this, or at least have a formula or run a macro to do this.

I want to find the minimum time value within a range of cells, excluding 0:00. Currently, =MIN(BL5:CP5). returns 0:00 if it exists in any of the cells.

I have two ranges that show parts of a question to be answered and those parts already answered (aa6:aa55 and ab6:ab55). I would like to count those elements where the value in column AA is greater than the corresponding value in column AB, showing questions with parts still to be answered. Currently I have a formula comparing the two and am counting the occurrences of true or false. This seems to be overkill and I am sure that there is an array formula that can do the same thing more efficiently, unfortunately I cannot figure it out.

In column f i have the following formula {=CELL("address",INDEX('Product Price'!$D$1:$D$1014,MATCH(B2&E2,'Product Price'!$A$1:$A$1014&'Product Price'!$D$1:$D$1014,0),0))} that returns the cell address from where i want to start my sum function.

My sheet named "Product Price" looks like this: 255Mar-0839508R 45.00256Apr-0839539R 45.00257May-0839569R 45.00258Jun-0839600R 45.00259Jul-0839630R 48.00260Aug-0839661R 48.00261Sep-0839692R 48.00262Oct-0839722R 48.00263Nov-0839753R 48.00264Dec-0839783R 48.00265Jan-0939814R 48.00266Feb-0939845R 48.00267Mar-0939873R 48.00268Apr-0939904R 48.00269May-0939934R 48.00

I now require a formula in column g that will count how many times starting from the cell in given in column f it added the amounts downwards to reach the amount in cell d of the "calculator" sheet - it must thus add d256+d257+d258... until it is bigger or equal to the amount in cell d.

I'm trying to add items to a Combobox on a Userform dynamically when the form loads - the criteria is if a cell value is greater than zero, the value being calculated by a formula within the cell.

Code: If Sheet5.Range("B58").Text >= "0" Then .AddItem "Target" End If

My data has a bunch of near 0 figures followed by values I actually need followed by more irrelevant 0's than once again followed by values I need and again irrelevant 0's. Looks like

0.1 0.12 3.2 3.4 0.1 0.3 4.5 4.2 0.3 0.11

but with many more rows and numbers. I'm graphing the start and end values before/after zero's.

The first block of numbers I figured out using

=MATCH(TRUE,INDEX($C8:$C150>1,0),0)+7 I then index from that given row.

The span of relevant values I'm looking for constantly changes, so once my numbers deviate too much I stop, using another index formula.

Now for finding my beginning and end points for the next block of data I've combined using VBA with excel formulas. I can't quite figure this part out. I've created Variables for ranges and then used them to find max and min Values.

Public Sub RunCurrent() ' ' RunCurrent Macro Dim upEnd As Integer Dim dnStart As Integer Dim dnEnd As Integer

I have a certain range to start, and want to exclude rows if a defined cell is not greater than zero. I cannot figure out the syntax to achieve. The following code selects the range even if the single cell is NOT greater than 0...

I have two columns A and B. In each column are a list of numbers. I want to count the number of times the numbers in column A are greater than the numbers in column B and display it in the form of a percentage. An even easier way for me to do what I need is as follows...I have a third column (column C) that subtracts A from B...if it is a negative number, the cells in column C are autoformated to color the cell red. If it's a positive number, the cell is colored green. Is there a way I can count the number of cells that are red and divide them by the number of cells that are green to get a percentage?

I'm looking for a formula that will add up the cells only when all three cells have a value greater than zero. In other words, if the last cell is zero I would like the value of the formula to =0 until data is entered

How can I use COUNTIF to count the values in a range which are greater than 0?

I put =COUNTIF(B2:B100000)>0 but that didn't work?

(I'm using XL 2007 hence the range greater than 65000 rows. But I don't think COUNTIFs syntax has been changed in 2007 so I assume I'm having a brain fart.)

I have a spreadsheet which calculates times from previous columns, I need to include only one of 2 columns whichever is the greater and in the next column only add the difference of the greater column if it is greater then the sum of 2 other columns as shown in attachment

Time in seconds A B C D E F G 17837423078B1+E1+F1+ THE GREATER OF C1 OR D1B1+E1+F1+ IF C1 OR D1 IS GREATER THAN E1+D1 ADD THE DIFFERENCE IGNORE IF NOT 17882423078B2+E2+F2+ THE GREATER OF C2 OR D2B2+E2+F2+ IF C2 OR D2 IS GREATER THAN E2+D2 ADD THE DIFFERENCE

I'm trying to count all cells in a row after the last number that was greater than 0. See my example spreadsheet. I have put the answers that it should be in to show what I'm after.

I want to divide the numbers from 2 cells, down a long column. Let's further say that in some instances there aren't any numbers in either of the cells. You get a divide by zero error.

So you have values in a1 and b1 through a10 and b10. You want to divide the value in the a column by the value in the b column and return the answer in the adjacent c column. You've copied the formula all the way down to c20.

All the cells from c11 to c20 will have divide by zero errors.

What is the syntax to check if both cells in columns a and b are greater than zero so that either an answer will be returned or just a blank cell will result, (when nothing is in one of the cells from a or b?

The following formula works for checking the status of cell A, how do I also check the value in cell B? =(IF(A5>0,A5/B5,""))

My goal is to look at a column of numbers and count the number of consecutive cells that are positive (or negative), while ignoring blank cells that may be in between them. Using the first formula on this thread. http://www.excelforum.com/excel-gene...-than-0-a.html

I was able to adapt it to my own data, but whenever I had blank cells in my data the results were not reliable. the formula i am using now is =IF(COUNT(1/((A1:A27<0)*(A2:A28<0))),MAX(FREQUENCY(IF((A1:A27<0)*(A2:A28<0),ROW(A2:A28)),IF((A1:A27<0)*(A2:A28>= 0),ROW(A1:A27))))+1,0). for a bunch of data in column A. With limited knowledge of excel I'm not exactly sure how this formula works, so I'm not sure how to tell it to ignore all blank cells. I attached an example that shows how it fails with the blank cells