Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

if function

ResolvedVersion 2007

Louise has attended:
Excel Intermediate course

IF function

If I want to use the IF function to see whether a range of cells are greater than 1 (if they are then I need to invoice an extra place), if the value is true I need to know how many cells are greater than 1, and if the value is false the answer is 0. What do I put in the formula for the true function as I need to know how many cells were greater than 1?

RE: IF function

Hi Louise

Thank you for your question. Depending on how your data is organised there are a couple of ways you may want to approach this. The IF function uses the syntax

=IF(Logical test,Value if True,Value if false)

So if your records are in a column e.g. A1 to A10 you might put an IF statement in B1 to B10 checking each cell in column A.

In B1 you could put =IF(A1>1,1,0). Wherever a cell from A1 to A10 has a number greater than 1 its neighbour cell in column B will also contain a 1. You could then total the B column to find how many times this happens. Only where a cell in column A is greater that 0 would a cell in column B contain a value.

Does this help or is your data organised differently? Let me know how you get on I will try to help further.

Kind regards,

Andrew





Kind regards,
Andrew

Wed 9 Dec 2009: Automatically marked as resolved.

Excel tip:

Conditional Formatting in Excel 2010

If you have lots of data in a spreadsheet, you may find that it is easier to read if you highlight some of the values. This is Conditional Formatting and here's how to use it:

1) Select the data you wish to apply the format to and click Conditional Formatting
2) A list of options will then appear, from this list, choose the format you wish to display e.g. find all cells with a value less than 0
3) Excel will then highlight all of these cells

To remove this: select the highlighted cells, click the drop down on the Conditional Formatting icon and select Clear Rules from selected cells.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.