Formula display if no data

asyamonique

Well-known Member
Joined
Jan 29, 2008
Messages
1,280
Office Version
  1. 2013
Platform
  1. Windows
Code:
=COUNTIF($D$3:$D$500,O2)

Good Day,
Above formula works fine but why there are numerics ıf there is no any data from column D and E ?
Also how can I avoid to display in cells #N/A if no values on related column with given formula below?
Code:
=VLOOKUP(O2,$D:$F,2,0)
Many Thanks
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Not sure I understand first question. Are you wanting =IF(COUNTIF($D$3:$D$500,O2)=0,"",COUNTIF($D$3:$D$500,O2))

Second one try =IFERROR(VLOOKUP(O2,$D:$F,2,0),"")


Hope that helps.
 
Upvote 0
Thanks for both help but the numeric value still appear due to O2 cell has another formula I think that is the reason!
O2 fourmula is
Code:
=IF(O1="","",IFERROR(SMALL($D$3:$D$400,COUNTIFS($D$3:$D$400,"<="&O1)+1),""))
Thanks
 
Upvote 0
Code:
=SUMIF($D:$D,O2,$J:$J)/60
Code:
=IF(COUNTIF($D$3:$D$500,O2)=0,"No Values",SUMIF($D$3:$D$500,O2,$K$3:$K$500)/COUNTIF($D$3:$D$500,O2))

Snakehips
Can I use the same way for to given formulas above to make my worksheet more clean if there are no datas on the target?
 
Last edited:
Upvote 0
Ohh achieve....
Actually my worksheet is a bit complicated with lots of exported datas from a softwear.
I created master copy which with formulas and vba codes.
Macro opens the target closed worksheet and copy/paste to master file then I get what I needed.
Hope its clear:)
I'm sorry if I'd bothered to you guys!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

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