How to use to Iferror and Vlookup makes blank cell to pure true blank

pankajgrover

Board Regular
Joined
Oct 27, 2022
Messages
99
Office Version
  1. 365
Platform
  1. Windows
Here is example, how to make D16, D17 show TRUE instead of false. I want here true blank cells..

Shares Trading - Copy.xlsx
ACD
14Infy300FALSE
15Natural Gas500FALSE
16 FALSE
17 FALSE
1
Cell Formulas
RangeFormula
C14:C17C14=IFERROR(VLOOKUP(A14,Prices!$A$2:$F$25,3,0),"")
D14:D17D14=ISBLANK([@Brok])
Named Ranges
NameRefers ToCells
Shares=OFFSET(Prices!$A$2,0,0,COUNTA(Prices!$A$2:$A$25))C14:C17
Cells with Data Validation
CellAllowCriteria
A14:A17List=Shares
 
H
How about
Excel Formula:
=if(o16="","",SUM(((M16*B16)*N16)-O16))
here i am stuck again, below data, how to solve this .. if O column some cells are blank, but i want P column should perform instead of #value because N column have data ...
Shares Trading - Copy.xlsx
NOP
36315.00250315500
46344.00250316950
5  
6  
753700.00 #VALUE!
855977.00 #VALUE!
964972.50 #VALUE!
1064825.00 #VALUE!
1
Cell Formulas
RangeFormula
O3:O10O3=IF(AND(N3<>"",H3<>""),C3*M3,"")
P3:P10P3=IF(N3="","",SUM(((M3*B3)*N3)-O3))
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
What should it perform?
my P clomn formula is=IF(N3="","",SUM(((M3*B3)*N3)-O3)) . so if O3 is blank , it should ignore -O3 value or treat as 0, i want its perform like that =IF(N3="","",SUM(((M3*B3)*N3)-0)).
 
Upvote 0
How about
Excel Formula:
=IF(N7="","",SUM(((M7*B7)*N7)-IF(O7="",0,O7)))
 
Upvote 0
How about
Excel Formula:
=IF(N7="","",SUM(((M7*B7)*N7)-IF(O7="",0,O7)))
Perfect. Thanks working.
Also advice me generally people used for blank cell in IF condition like i put "" for blank cell . but as you see its not true blank, sometimes hv to calculate with another cells so #value error occurs sometime. What i doing before i do put 0 instead of "" . and afterwards to deal with column showing unnecessary 0 in all fields , i format cell with 0.00;-0.00;;@.
Now as your above examples, i learn today how to do deal with "" with if condition without formatting like cells 0.00;-0.00;;@. So at last what is the best method in your opinion to deals with blank cells calculation.
 
Upvote 0
In my opinion there is no "best" way. It's down to what you want to do & personal preference.
 
Upvote 0
In my opinion there is no "best" way. It's down to what you want to do & personal preference.
Hi, i am stuck in if formula:
IF(AH16="S",-I16+AL16,-AL16+P16-O16))
In above 1st formula IF(AH16="S",-I16+AL16,-AL16+P16-O16)) if i forgot to put B or S, this not work refresh properly
I want if AH16="S", then this formula apply -I16+AL16 and if AH16="B", then this formula apply -AL16+P16-O16, otherwise if not found S or B go blank, how to do this.. Thanks
 
Upvote 0
@Fluff hi in another i am stuck in below example , i want if G cell is blank then AH result should be "S", and if M cell is blank AH result should be "B", if both G & M cells are blank , AH result should be "" Blank.. if both G & M cells hv some data and both are not blank AH result should be "D" how to do that this also ?

Shares Trading.xlsx
GMAH
91S
100.5S
111B
121B
1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AH3:AH109Cell Value="B"textNO
AH3:AH109Cell Value="S"textNO
AP3:AX109,U3:AC109Cell Value<0textNO
AP3:AX109,U3:AC109Celldoes not contain a blank value textNO
 
Upvote 0
@pankajgrover
Just a comment that you are making some of your formulas look more complex that they are by including unnecessary parentheses and and unnecessary function (SUM).
For example the original P16 formula from post #7 as adjusted in post 8 could be changed as follows
Instead of
Excel Formula:
=IF(O16="","",SUM(((M16*B16)*N16)-O16))
it could be written more simply as
Excel Formula:
=IF(O16="","",M16*B16*N16-O16)

The formula from post 14 could be changed in a similar way
Excel Formula:
=IF(N7="","",SUM(((M7*B7)*N7)-IF(O7="",0,O7)))
Excel Formula:
=IF(N7="","",M7*B7*N7-IF(O7="",0,O7))
In fact, that one could be simplified further
Excel Formula:
=IF(N7="","",M7*B7*N7-N(O7))
 
Upvote 0

Forum statistics

Threads
1,216,073
Messages
6,128,641
Members
449,461
Latest member
kokoanutt

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