#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 40
Default If, And, Or Formula

Here is my equation:

IF(OR(AND(I3="DG F",I3="DG M"),AND(H3=1,D3="UNK"),ReqPO!AH3,9999),ReqPO!AH 3)

I want to make this statement in the cell K3:

If (I3="DG F" or "DG M" ) and D3="UNK" and H3=0 then I want 9999 in K3.
However if there is a 1 in H3, then I need the ReqPO!AH3 number in K3.
Finally, if D3 = "N/A', then I want a blank cell for K3.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 209
Default If, And, Or Formula

=IF(ISNA(D3),"",IF(AND(OR(I3="DG F",I3="DG
M"),D3="UNK",H3=0),999,IF(H3=1,ReqPO!AH3,"unknown" )))
- You left out what happens if NONE of the conditions are met, so I put
"unknown" in that part of the formula.
- Another unknown in your question is whether "N/A' is text that you put in
or is a calculation from a formula. If it's text, change the above formula
to...
=IF(D3="N/A","",IF(AND(OR(I3="DG F",I3="DG
M"),D3="UNK",H3=0),999,IF(H3=1,ReqPO!AH3,"unknown" )))

--
Hope this helps.
Thanks in advance for your feedback.
Gary Brown


"Eden397" wrote:

Here is my equation:

IF(OR(AND(I3="DG F",I3="DG M"),AND(H3=1,D3="UNK"),ReqPO!AH3,9999),ReqPO!AH 3)

I want to make this statement in the cell K3:

If (I3="DG F" or "DG M" ) and D3="UNK" and H3=0 then I want 9999 in K3.
However if there is a 1 in H3, then I need the ReqPO!AH3 number in K3.
Finally, if D3 = "N/A', then I want a blank cell for K3.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 40
Default If, And, Or Formula

That is getting closer but I only want a blank cell if D3=N/A and I3 is
either DG F or DG M.

"Gary Brown" wrote:

=IF(ISNA(D3),"",IF(AND(OR(I3="DG F",I3="DG
M"),D3="UNK",H3=0),999,IF(H3=1,ReqPO!AH3,"unknown" )))
- You left out what happens if NONE of the conditions are met, so I put
"unknown" in that part of the formula.
- Another unknown in your question is whether "N/A' is text that you put in
or is a calculation from a formula. If it's text, change the above formula
to...
=IF(D3="N/A","",IF(AND(OR(I3="DG F",I3="DG
M"),D3="UNK",H3=0),999,IF(H3=1,ReqPO!AH3,"unknown" )))

--
Hope this helps.
Thanks in advance for your feedback.
Gary Brown


"Eden397" wrote:

Here is my equation:

IF(OR(AND(I3="DG F",I3="DG M"),AND(H3=1,D3="UNK"),ReqPO!AH3,9999),ReqPO!AH 3)

I want to make this statement in the cell K3:

If (I3="DG F" or "DG M" ) and D3="UNK" and H3=0 then I want 9999 in K3.
However if there is a 1 in H3, then I need the ReqPO!AH3 number in K3.
Finally, if D3 = "N/A', then I want a blank cell for K3.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"