PQ Null vs ""

cmcreynolds

Active Member
Joined
May 21, 2015
Messages
295
so, I have run into an issue in a PQ if/then statement

if [SeatFee]="Yes" then [Program] & " (Seat)" else if [StudentMarker] <> "" then [Program] & " " & [StudentMarker] else [Program]

which is fine, but in the original data, I made an error and typed something in the cell, but then deleted it and it comes through PQ as "null" and so doesn't apply to the above if/then statement.

I have tried "clearing contents" and formatting and everything in the original cell, but it still enters PQ as null (all the other blank cells are blank).

Do I have to add another "extension" of the if/then to encompass nullses? or am I forgetting to do something in the original data?

(to get this report out today, I'm going to just add another else if [StudentMarker] <> null then... but is this the only way?)

Weird
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
ugh...to put into context, the field where the errant cell was in [StudentMarker] sorry

and the result of the if statement for the instance is null, even though there is data in all the other fields.
 
Last edited:
Upvote 0
Yes, in PQ, [StudentMarker] was all just "" with the exception of that one null cell. I fixed it by copying and pasting an empty cell over the null one...why did that work? I have no idea.
 
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,113,999
Members
448,543
Latest member
MartinLarkin

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