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

STL - Formerly Best Training Solutions Through Learning
TrustPilot
Excellent
Request Callback We will call you back
0207 987 3777 Call for assistance
Your Basket Basket is empty
if functions

ResolvedVersion 2003

michelle j has attended:
Excel Intermediate course
Excel Advanced course

If functions

how do i use if functions?

RE: if functions

Hi Michelle,

Welcome to the forum and thank you for your first post:

The IF function is used to determine the state of a condition, i.e.: if it is TRUE or FALSE, dependant on the answer then further actions can be undertaken; so if we consider the formula =IF(A1>=100,A1*2,0) which translated would be; Is A1 greater than or equal to 100, if it is (TRUE) then multiply the value of A1 by 2, if it is not, (FALSE) then do nothing (0). Taking this further, you can nest up to 7 IF statements, and also use other formula in the IF statement, substituted for either of the statements (TRUE or FALSE).

regards Pete

Excel tip:

Use RANDBETWEEN to generate random numbers

There may be occassions where you need to generate random numbers in your spreadsheet. Use the RANDBETWEEN function to generate random numbers between two values that you specify.

The function looks like this:

=randbetween(LOW,HIGH)

where LOW is the lowest number you want generated; and HIGH is the highest number you want generated.

This formula will work with both positive and negative LOWs and HIGHs. Also it will only generate integer numbers unless forced to do otherwise by the following:

=randbetween(LOW*10^PRECISION,
HIGH*10^PRECISION)/(10^PRECISION).

where PRECISION represents the levels of decimal precision needed (i.e. if you need numbers with one decimal place, PRECISION would be 1; 2 for two decimal places and so on).

One final note, if the RANDBETWEEN formula does not work in your spreadsheet or returns a "#NAME" error, you need to install the Analysis Toolpak Add-In. You will need to press F2 then Enter following the installation.

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.09 secs.