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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
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
1DRLOCUMMODRender
2smithjackQ6jack
3smithQ6error
4smithsmithQ6smith
5smithsmithQ7smith
6smithQ7smith
7tomphilQ7phil
8tomQ7tom
9tomralfQ6ralf
10tomQ6error
11tomtomQ6tom

<tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
D2=IF(C2="Q6",IF(B2<>"",B2,"error"),IF(C2<>"Q6",IF(B2<>"",B2,A2)))

<tbody>
</tbody>

<tbody>
</tbody>
 
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
1DRLOCUMMODRender
2smithjackQ6jack
3smithQ6error
4smithsmithQ6error
5smithsmithQ7smith
6smithQ7smith
7tomphilQ7phil
8tomQ7tom
9tomralfQ6ralf
10tomQ6error
11tomtomQ6error

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
D2=IF(C2="Q6",IF(OR(B2="",B2=A2),"error",B2),IF(C2<>"Q6",IF(B2<>"",B2,A2)))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,346
Messages
6,124,417
Members
449,157
Latest member
mytux

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