nesting if

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

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Nesting if

Nesting if

resolvedResolved · Low Priority · Version 2007

Shane has attended:
Excel Advanced course
Excel VBA Intro Intermediate course

Nesting if

Hi,

I did the sample question on the grade allocation.xls file and the formula i used in column K is as follows. Just wanted to know if there is a way to convert a text answer into a numerical figure without using a further IF statement?

=B2+C2+D2+E2+F2+IF(I2=10,10,0)


Thanks,
Shane

RE: nesting if

Hi Shane,

Thank you for your question and welcome to the forum.

The formula you need is:

=sum(b2:f2,I2)

As I2 could contain either text or a number, having I2 in the sum bracket only uses cells that contains numbers and ignores text without a #value message appearing.

I hope this answers your question.

Regards

Simon




 

Excel tip:

Transpose text

You can transpose any range of cells, turning the columns into rows and the rows into columns. Just follow these steps:

Select the range.

Click the Copy button on the Standard toolbar to copy it to the Clipboard.

Select a cell outside of the range you copied.

Select Paste Special from the Edit menu.

In the Paste Special dialog box, click Transpose, then OK.

View all Excel hints and tips


Server loaded in 0.09 secs.