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

if and

ResolvedVersion 2011 (Mac)

If & And

Hello

I have 3 columns of data, showing different costs from 3 different vendors, I need to work out which is the cheapest vendor and by how much, shown as a percentage.

Vendor 1, Vendor 2, vendor 3,

Trying to use an "if" function but I think I need an,’if’ and β€˜And’ nothing seems to work.. any help would be appreciated

Thanks Emma

Edited on Thu 20 Jun 2013, 09:40

RE: if & And

Hi Emma

Thanks for getting in touch. You could achieve this with a nested IF but there's a little known function in Excel called SMALL which will be a big help. It finds the "x" smallest value in a list. So to find the second lowest in A2, B2 and C2 you can write:

=SMALL(A2:C2,2)

First a quick reminder on the percentages. Assuming your lowest Vendor price is in cell A2 and the next lowest is in B2, you'd write:

=(A2-B2)/B2

Now to put SMALL together with your percentage division and you get:

=(SMALL(A2:C2,1)-SMALL(A2:C2,2))/SMALL(A2:C2,2)

I think that should work. Give it a try and let us know how you get on.

Kind regards

Gary Fenn
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Edited on Thu 20 Jun 2013, 15:58

RE: if & And

Thanks for your speedy reply this will come in very useful, I will give that a go..

But I should have explained, I have to list which vendor is the cheapest, thats why I thought an if function ..

Would you show me the nested If function?

Best Emma

RE: if & And

Hi

Thanks for your reply. If you then want to work backwards and find out who was the cheapest, you'll have to use MIN, INDEX and MATCH.

=INDEX(A1:C1,0,MATCH(MIN(A2:C2),A2:C2,0))

Find the lowest, find that number's position in the list, then find it's relative header. You will have to adjust that first zero for how many rows away the header / label is. If it's 4 rows above, enter -4.

Kind regards

Gary Fenn
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Wed 26 Jun 2013: Automatically marked as resolved.

Excel tip:

Turn off AutoComplete in Excel

You may have noticed when typing into your spreadsheets that if you start to enter labels that begin with the same letters as a label that has been previously entered in the same spreadsheet, Excel will try and automatically complete the text for you. This feature is called AutoComplete.

If you find this feature more annoying than useful, you can turn it off by:

1. Going to Tools - Options.

2. Select the Edit tab.

3. Remove the tick from next to the "Enable AutoComplete for cell values" option.

4. Click OK.

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