Formula help

VbaHell

Well-known Member
Joined
Jan 30, 2011
Messages
1,220
Can I push my luck please and ask another question

In column A1:A5 I have numeric values with a total, this is a set target

In column B1:B5 I have numeric values that I enter in as a score

I then divide total of column B in A for the actual percentage score

If I enter N/A into any of the B1:B5 cells I would like the Target reduced in the opposite cell in A1:A5

Example1

A B
2 1
2 2
2 1
1 1
2 2

9 7 = 77.8% totals

Example2

A B
2 1
2 n/a
2 1
1 1
2 2

7 5 = 71.4% totals

maybe a sumif type statement in the total sum saying not to add value in A1 if B1 has N/A and so on
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Is this what you need?

=SUM(B1:B5)/SUMPRODUCT(--ISNUMBER(A1:A5),--ISNUMBER(B1:B5),A1:A5)
 
Upvote 0
Another variant..
Excel Workbook
ABC
121*
22N/A*
321*
411*
522*
67571.43%
Sheet10



Hope that helps.
 
Upvote 0
Thanks everyone for all your replies
Snakehips i went with your answer, simple formula for A6 (Doh, why did I not think of this)
 
Upvote 0

Forum statistics

Threads
1,214,632
Messages
6,120,649
Members
448,975
Latest member
sweeberry

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top