notblank?

nelsok

Board Regular
Joined
Jan 20, 2006
Messages
166
I dont think there is a funtion similar to isblank for testing if a cell isnotblank.

I can not use if in this case.

Can I multiply isblank()*-1 to get the opposite?


along with this question is.... can i use countif to do this? If so, does countif count as an if statment? the reason I ask is becuase I am at the max for nested ifs

any other suggestions?
 
thats what i started to use....

i am trying to eval the function and getting this...

if(and(true,false),0,.........

next step

if(false,0,.....

next step

if(false,#NA,.....

not sure what is making that heppen
 
Upvote 0

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Does this work?

If Not Application.Isblank(Range("A1")) Then

maybe you could tell me.

=IF(AND(OR(Q$6=1,Q$6=2,Q$6=3),notblank(H9)),VLOOKUP($N9&LOOKUP(Q$6,$A$2:$A$7,$B$2:$B$7),'Upload Pivot'!$A$5:$O$700,7,FALSE)*Q$5),IF(OR(Q6=4,Q6=5),"if the value is 4 or 5 do this",IF(OR(Q6=8,Q6=9,Q6=10,Q6=11,Q6=11,Q6=12),"do this if it is a prod request",IF(OR(Q6=12,Q6=13,Q6=14),"if it is an export allocation do this",LOOKUP(Q6,P602:P616,Q602:Q616)*Q5))))

=CHOOSE(MATCH(Q$6,{1,4,6,8,13,14.01},1),IF(H9<>"",VLOOKUP($N9&LOOKUP(Q$6,$A$2:$A$7,$B$2:$B$7),'Upload Pivot'!$A$5:$O$700,7,0)*Q$5,""),"if the value is 4 or 5 do this","do this if it is a prod request","if it is an export allocation do this",LOOKUP(Q6,P602:P616,Q602:Q616)*Q5)
 
Upvote 0
I was not very specific about what must occur if one of the if statments is true... for each one, it must perform a lookup on a sperate sheet. so their are 4 sheets having lookups done not just the one.
 
Upvote 0
I was not very specific about what must occur if one of the if statments is true... for each one, it must perform a lookup on a sperate sheet. so their are 4 sheets having lookups done not just the one.

The CHOOSE formula purports to mimick the behavior of the long formula you posted. Did you try it as is in order to see how it behaves?
 
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,746
Members
449,050
Latest member
excelknuckles

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