Locum - multiple If Statements

skyhigh_ct

New Member
Joined
Jul 14, 2007
Messages
29
Looking to output column "D" Render. Thank you
A B C D
1 DR LOCUM MOD Render
2 smith jack Q6 jack
3 smith (blank) Q6 error
4 smith smith Q6 error
5 smith smith "<>Q6" smith
6 smith (blank)"<>Q6" smith
7 tom tom "<>Q6" tom
8 tom (blank) "<>Q6" tom
9 tom ralf Q6 ralf
10 tom (blank) Q6 error
11 tom tom Q6 error
 
Last edited:

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
This looks like gibberish please be more specific. Usually a before and after result can be helpful.
 
Upvote 0
I was tired last night, & my pasting of a grid did not format properly.
I am not sure how to upload a picture or spreadsheet from PC (perhaps not allowed?).

Goal is to return a name or "error" in column D. [note "Q6" is text, not a cell reference]

First if/and condition: if data in column "C" is = "Q6", populate column "D" with column "B" value if "B" is not blank, if "B" is blank, return "error";
Second condition: if/then column "C" is <> "Q6", populate column "D" value when column "B" has name, if "B" is blank, populate with column "A" value

Thank you very much for helping. - Jason
 
Last edited:
Upvote 0
Is this what you want
Excel 2013 32 bit
ABCD
DRLOCUMMODRender
smithjackQ6jack
smithQ6error
smithsmithQ6smith
smithsmithQ7smith
smithQ7smith
tomphilQ7phil
tomQ7tom
tomralfQ6ralf
tomQ6error
tomtomQ6tom

<tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/TD]

[TD="align: center"]3[/TD]

[TD="align: right"][/TD]

[TD="align: center"]4[/TD]

[TD="align: center"]5[/TD]

[TD="align: center"]6[/TD]

[TD="align: right"][/TD]

[TD="align: center"]7[/TD]

[TD="align: center"]8[/TD]

[TD="align: right"][/TD]

[TD="align: center"]9[/TD]

[TD="align: center"]10[/TD]

[TD="align: right"][/TD]

[TD="align: center"]11[/TD]

</tbody>
Sheet1

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<tbody>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
[TR]
[TH="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]D2[/TH]
[TD="align: left"]=IF(C2="Q6",IF(B2<>"",B2,"error"),IF(C2<>"Q6",IF(B2<>"",B2,A2)))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Very Close but,
Row 4 & 11 would need to yield an error because (1st argument) when column "C" is = Q6, & the names in column "A" & "B" are the same.

Thank you very much for the feedback.
 
Upvote 0
How about
Excel 2013 32 bit
ABCD
DRLOCUMMODRender
smithjackQ6jack
smithQ6error
smithsmithQ6error
smithsmithQ7smith
smithQ7smith
tomphilQ7phil
tomQ7tom
tomralfQ6ralf
tomQ6error
tomtomQ6error

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/TD]

[TD="align: center"]3[/TD]

[TD="align: right"][/TD]

[TD="align: center"]4[/TD]

[TD="align: center"]5[/TD]

[TD="align: center"]6[/TD]

[TD="align: right"][/TD]

[TD="align: center"]7[/TD]

[TD="align: center"]8[/TD]

[TD="align: right"][/TD]

[TD="align: center"]9[/TD]

[TD="align: center"]10[/TD]

[TD="align: right"][/TD]

[TD="align: center"]11[/TD]

</tbody>
Sheet1

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]D2[/TH]
[TD="align: left"]=IF(C2="Q6",IF(OR(B2="",B2=A2),"error",B2),IF(C2<>"Q6",IF(B2<>"",B2,A2)))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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