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

nested or formulas

Forum home » Delegate support and help forum » Microsoft Excel Training and help » NESTED 'OR' FORMULAS

NESTED 'OR' FORMULAS

ResolvedVersion 2007

Angela has attended:
Excel Advanced course

NESTED 'OR' FORMULAS

Please can you remind me the sequence for a nested formula using 'OR' and 'IF' following 'COUNTIF'

I am trying to ask Excel to allocate one point each time the word 'Gold', 'Silver' and 'Bronze' features in a particular section of my spreadsheet.

I was counting them individually:

=(COUNTIF(D2:N2,"Gold"))*1
=(COUNTIF(D2:N2,"Silver"))*1
=(COUNTIF(D2:N2,"Bronze"))*1

But there must be a way to use a combined formula which will comprise all of the above using'OR' or perhaps 'IF'..(?)

Thanks
Angela

RE: NESTED 'OR' FORMULAS

Hello Angela

Thank you for your question and welcome to the forum.

I think you could resolve this by nesting the three countif functions inside a SUM function:

=SUM(COUNTIF(D2:N2,"gold"),COUNTIF(D2:N2,"silver"),COUNTIF(D2:N2,"bronze"))

Or if the only pieces of text in the cell range D2:N2 are gold, silver or bronze, you could get Excel to count the number of entries in that cell range using =COUNTA(D2:N2).

Kind regards
Amanda

RE: NESTED 'OR' FORMULAS

Hi Amanda,

Thanks so much for resolving this for me - it was driving me nuts!


Best regards
Angela

Excel tip:

Navigate with keyboard without losing your active cell

If you like using your keyboard to scroll through your excel document, but want to keep your active cell the same, use the scroll lock, and then use your arrow keys to navigate around the document.

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.