correct formula when cell is blank to leave blank

rjmdc

Well-known Member
Joined
Apr 29, 2020
Messages
703
Office Version
  1. 365
Platform
  1. Windows
i protect my worksgheets when i add formulas before i give to the other staff
i add 100 blank rows to my tables to allow them to add data without VBA
when i add the formulas i get rows of NA instead of blank
please help me fix the formulas:
=XLOOKUP([@[CLIENT NAME]],brokers_cm[Participant],brokers_cm[tabs id],"NA") what do i do when client is blank
=[@[ LATEST SAP DATE]]+180 - how do i compute only when sap date is not blank
same for =DATEDIF([@[ LATEST SAP DATE]],TODAY(),"m") sap date is blank
same here =XLOOKUP([@[Tabs ID]],brokers_cm[tabs id],brokers_cm[Broker Name],"NA")

somehow i keep making errors when rows are blank
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
it works for the na's
how do i fix this part
=[@[ LATEST SAP DATE]]+180
when latest sap date is blank i need a blank cell as a result
 
Upvote 0
=IF(ISBLANK(cell reference),"",formula) or IF(cell reference) = "","",formula
 
Upvote 0
Solution
IF(cell reference) = "","",formula worked perfectly and i adjusted all the others to follow this pattern
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

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