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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Tetra201

MrExcel MVP
Joined
Oct 14, 2016
Messages
3,832
Is this what you need?

=SUM(B1:B5)/SUMPRODUCT(--ISNUMBER(A1:A5),--ISNUMBER(B1:B5),A1:A5)
 
Upvote 0

Snakehips

Well-known Member
Joined
May 17, 2009
Messages
5,743
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Another variant..
Excel Workbook
ABC
121*
22N/A*
321*
411*
522*
67571.43%
Sheet10



Hope that helps.
 
Upvote 0

VbaHell

Well-known Member
Joined
Jan 30, 2011
Messages
1,220
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,195,638
Messages
6,010,861
Members
441,571
Latest member
stolenweasel

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
Top