formula question

hhamlinwright08

New Member
Joined
Oct 5, 2017
Messages
20
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I need help writing a formula for column 'W'.
If Columns U and V contain numbers, I would like column W to display the sum value.
If, however, columns U and V contain 'NA', I would like column W to also display 'NA'

Please see image below. Any help much appreciated!

Capture.JPG
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi HHamlinWright08,

You don't say what to do if one is a number or if it contains something other than "NA". Maybe this works?

Book1
UVW
1LeftEyeRightEyeTotalScore
2246
3415
4NANANA
Sheet1
Cell Formulas
RangeFormula
W2:W4W2=IF(ISNUMBER(U2/V2),SUM(U2:V2),"NA")
 
Upvote 0
Hi, thank you for the quick response!
Nearly perfect, however when using this formula if columns 'U' and 'V' both are 0, column 'W' becomes NA, when I would want it to be 0 also (as below)

If column U is 'NA' then column V can only every be 'NA' also.

Capture.JPG


I hope this makes sense!
 
Upvote 0
How about

HHamlinWright08.xlsx
UVW
1LeftEyeRightEyeTotalScore
2246
3415
4000
5NANANA
Sheet1 (2)
Cell Formulas
RangeFormula
W2:W5W2=IF(U2&V2="NANA","NA",SUM(U2:V2))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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