If Column is Empty

Front

Board Regular
Joined
Oct 26, 2021
Messages
54
Office Version
  1. 2016
Platform
  1. Windows
I cannot believe I cannot figure this out. I have tried about 20 things and nothing seems to work. They all work with a cell but not table column. I am trying to say if a column in the table is empty then return "NA", otherwise perform the function.

This is what I started to go with.
Excel Formula:
=IF(ISBLANK(Table134[Close Price Per Contract / Share]),"NA",COUNTIF(Table134[Profit / Loss],">0")/COUNT(Table134[Profit / Loss]))

I also tried using ""<> and then I tried some funky things with IF(SUMPRODUCT(ISNUMBER(MATCH...
But nothing seems to work. It seems like one I should be able to get, but having issue. Any help would be appreciated!
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
try using COUNTA = 0 (untested)

Excel Formula:
=IF(COUNTA(Table134[Close Price Per Contract / Share])=0,"NA",COUNTIF(Table134[Profit / Loss],">0")/COUNT(Table134[Profit / Loss]))
 
Upvote 0
Solution

Forum statistics

Threads
1,214,591
Messages
6,120,425
Members
448,961
Latest member
nzskater

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