Cell is Blank/Null yet IF(Cell ="" , "" , "Do Something") Always Renders "Do Something"

Shiseiji

Board Regular
Joined
Oct 23, 2009
Messages
214
Office Version
  1. 2019
Platform
  1. Windows
I'm working on a file to pass to others to fill out. There is a hidden worksheet that references filled out worksheet. I'm using OFFSET to try and minimize errors if entries are moved around the visible worksheet. I need to append text to one cell, but because the worksheet will be uploaded to an application, the rows not used must not have data, formulas are fine. I've tried everything below, and they all return "TEXT". The cell is formatted General, and I've used [Delete] and copied in a known null cell to ensure the reference cell is blank. Here is what I've tried, obviously I'm missing something.

Code:
Testing the cell
=LEN(OFFSET(LOGON,2,0,1,1)) ="0"
=COUNTBLANK(OFFSET(LOGON,2,0,1,1)) ="1"

=IF(OFFSET(LOGON,2,0,1,1)="", "", OFFSET(LOGON,2,0,1,1)) &"TEXT"
=IF(ISBLANK(OFFSET(LOGON,2,0,1,1)),"",OFFSET(LOGON,2,0,1,1)) &"TEXT"
=IF(LEN(OFFSET(LOGON,2,0,1,1))<=2, "", OFFSET(LOGON,2,0,1,1)) &"TEXT" 
=IF(COUNTBLANK(OFFSET(LOGON,2,0,1,1))=1,"",OFFSET(LOGON,2,0,1,1)) &"TEXT"

TIA, Ron
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
I'm not certain that I am following but it looks to like you have misplaced the &"TEXT" in your formulas and that should be inside the last parenthesis. That is ..

=IF(OFFSET(LOGON,2,0,1,1)="", "", OFFSET(LOGON,2,0,1,1)&"TEXT")
=IF(ISBLANK(OFFSET(LOGON,2,0,1,1)),"",OFFSET(LOGON,2,0,1,1)&"TEXT")
etc
 
Upvote 0
Solution
Thank you Peter, you caught it! (y) Bank Holiday (Labor Day, where we pretend that we honor the hard won rights of our forerunners as the legislature reverses those gains. And I've been labor and management) here in the US, please pardon the delayed Thanks!!!! When the day comes that you decide you must pack it in, you will be sorely missed!
 
Upvote 0

Forum statistics

Threads
1,214,859
Messages
6,121,963
Members
449,059
Latest member
oculus

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