Simple if statement

MdYas

New Member
Joined
Apr 23, 2014
Messages
17
Dear Expert,

Need help to get result as mentioned below,

[TABLE="width: 500"]
<tbody>[TR]
[TD]AWB No[/TD]
[TD]Remark[/TD]
[TD]Reason[/TD]
[/TR]
[TR]
[TD]12345678[/TD]
[TD]cash not ready[/TD]
[TD]here i want result[/TD]
[/TR]
</tbody>[/TABLE]

if i type or validate in column B3, want display result as per attached file in in column c

[TABLE="width: 268"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Tomorrow[/TD]
[TD]Spoken to Mr, as per Consignee want shipment delivery on dated. 20.08.2018 (customer not available)[/TD]
[/TR]
[TR]
[TD]Residence closed[/TD]
[TD]Spoken to Mr, as per Consignee want shipment delivery on dated. 20.08.2018 (residence close)[/TD]
[/TR]
[TR]
[TD]Cash not ready[/TD]
[TD]Spoken to Mr, as per Consignee cash not ready want delivery on 20.08.2018[/TD]
[/TR]
[TR]
[TD]Not Respond[/TD]
[TD]Try to Mr, call not respond, will next attempt 20.08.2018 (short address) SMS SEND[/TD]
[/TR]
[TR]
[TD]Unreachable[/TD]
[TD]Try to Mr, call not reachable, will next attempt 20.08.2018 (customer not available) SMS SEND[/TD]
[/TR]
[TR]
[TD]Switchedoff[/TD]
[TD]Try to Mr, call switch off, will next attempt 20.08.2018 (customer not available)SMS SEND[/TD]
[/TR]
[TR]
[TD]Self Collect[/TD]
[TD]Spoken to Mr, as per Consignee he will self-collect from office [/TD]
[/TR]
[TR]
[TD]Double order[/TD]
[TD]Spoken to Mr, as per Consignee want to cancelled shipment dueDOUBLE ORDER[/TD]
[/TR]
[TR]
[TD]RTO[/TD]
[TD]Spoken toMr, as per Consignee want to cancelled shipment due CHANGE OF MIND[/TD]
[/TR]
[TR]
[TD]Cancelled[/TD]
[TD]Spoken to Mr, as per Consignee want to cancelled shipment due DELAY IN DELIVERY [/TD]
[/TR]
[TR]
[TD]Out of station[/TD]
[TD]Spoken to Mr, as per Consignee want shipment delivery on dated. 20.08.2018 (out off station)[/TD]
[/TR]
[TR]
[TD]Office closed[/TD]
[TD]Spoken to Mr, as per Consignee want shipment delivery on dated 20.08.2018 (Office closed)[/TD]
[/TR]
[TR]
[TD]Misrout[/TD]
[TD]Misrout within city[/TD]
[/TR]
[TR]
[TD]ODA[/TD]
[TD]Spoken to Mr, as per Consignee shipment address is out of delivery area[/TD]
[/TR]
[TR]
[TD]Non attempt[/TD]
[TD]Spoke to Mr, apologised and committed to next day delivery (NOT ATTEMPTED )[/TD]
[/TR]
</tbody>[/TABLE]



Regards,

Yaseen
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Not really clear what your question truly is, but I have an idea.

Try to use the IFS() function. This function allows many if statements without the need to put If statements inside other If statements.

IFS(A2="Tomorrow",B3="Spoken to Mr, as per Consignee want shipment delivery on dated. 20.08.2018 (customer not available)",A2="Residence closed",B3="Spoken to Mr, as per Consignee want shipment delivery on dated. 20.08.2018 (residence close)") and so on and so on.
 
Upvote 0
Cross posted https://www.excelforum.com/excel-formulas-and-functions/1248626-need-formula-for-desire-result.html

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0
Sir,

what i means is if i select "Tomorrow" from B2 column result be in column C2 Spoken to Mr, as per Consignee want shipment delivery on dated. 20.08.2018 (customer not available) or if i select "residence closed" so on[TABLE="class: cms_table, width: 268"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Cash not ready[/TD]
[TD]Spoken to Mr, as per Consignee cash not ready want delivery on 20.08.2018[/TD]
[/TR]
[TR]
[TD]Not Respond[/TD]
[TD]Try to Mr, call not respond, will next attempt 20.08.2018 (short address) SMS SEND[/TD]
[/TR]
[TR]
[TD]Unreachable[/TD]
[TD]Try to Mr, call not reachable, will next attempt 20.08.2018 (customer not available) SMS SEND[/TD]
[/TR]
[TR]
[TD]Switchedoff[/TD]
[TD]Try to Mr, call switch off, will next attempt 20.08.2018 (customer not available)SMS SEND[/TD]
[/TR]
[TR]
[TD]Self Collect[/TD]
[TD]Spoken to Mr, as per Consignee he will self-collect from office[/TD]
[/TR]
[TR]
[TD]Double order[/TD]
[TD]Spoken to Mr, as per Consignee want to cancelled shipment dueDOUBLE ORDER[/TD]
[/TR]
[TR]
[TD]RTO[/TD]
[TD]Spoken toMr, as per Consignee want to cancelled shipment due CHANGE OF MIND[/TD]
[/TR]
[TR]
[TD]Cancelled[/TD]
[TD]Spoken to Mr, as per Consignee want to cancelled shipment due DELAY IN DELIVERY[/TD]
[/TR]
[TR]
[TD]Out of station[/TD]
[TD]Spoken to Mr, as per Consignee want shipment delivery on dated. 20.08.2018 (out off station)[/TD]
[/TR]
[TR]
[TD]Office closed[/TD]
[TD]Spoken to Mr, as per Consignee want shipment delivery on dated 20.08.2018 (Office closed)[/TD]
[/TR]
[TR]
[TD]Misrout[/TD]
[TD]Misrout within city[/TD]
[/TR]
[TR]
[TD]ODA[/TD]
[TD]Spoken to Mr, as per Consignee shipment address is out of delivery area[/TD]
[/TR]
[TR]
[TD]Non attempt[/TD]
[TD]Spoke to Mr, apologised and committed to next day delivery (NOT ATTEMPTED )[/TD]
[/TR]
</tbody>[/TABLE]
be so on

[TABLE="class: cms_table, width: 268"]
<tbody>[TR]
[TD]Residence closed[/TD]
[TD]Spoken to Mr, as per Consignee want shipment delivery on dated. 20.08.2018 (residence close)[/TD]
[/TR]
[TR]
[TD]Cash not ready[/TD]
[TD]Spoken to Mr, as per Consignee cash not ready want delivery on 20.08.2018[/TD]
[/TR]
[TR]
[TD]Not Respond[/TD]
[TD]Try to Mr, call not respond, will next attempt 20.08.2018 (short address) SMS SEND[/TD]
[/TR]
[TR]
[TD]Unreachable[/TD]
[TD]Try to Mr, call not reachable, will next attempt 20.08.2018 (customer not available) SMS SEND[/TD]
[/TR]
[TR]
[TD]Switchedoff[/TD]
[TD]Try to Mr, call switch off, will next attempt 20.08.2018 (customer not available)SMS SEND[/TD]
[/TR]
[TR]
[TD]Self Collect[/TD]
[TD]Spoken to Mr, as per Consignee he will self-collect from office[/TD]
[/TR]
[TR]
[TD]Double order[/TD]
[TD]Spoken to Mr, as per Consignee want to cancelled shipment dueDOUBLE ORDER[/TD]
[/TR]
[TR]
[TD]RTO[/TD]
[TD]Spoken toMr, as per Consignee want to cancelled shipment due CHANGE OF MIND[/TD]
[/TR]
[TR]
[TD]Cancelled[/TD]
[TD]Spoken to Mr, as per Consignee want to cancelled shipment due DELAY IN DELIVERY[/TD]
[/TR]
[TR]
[TD]Out of station[/TD]
[TD]Spoken to Mr, as per Consignee want shipment delivery on dated. 20.08.2018 (out off station)[/TD]
[/TR]
[TR]
[TD]Office closed[/TD]
[TD]Spoken to Mr, as per Consignee want shipment delivery on dated 20.08.2018 (Office closed)[/TD]
[/TR]
[TR]
[TD]Misrout[/TD]
[TD]Misrout within city[/TD]
[/TR]
[TR]
[TD]ODA[/TD]
[TD]Spoken to Mr, as per Consignee shipment address is out of delivery area[/TD]
[/TR]
[TR]
[TD]Non attempt[/TD]
[TD]Spoke to Mr, apologised and committed to next day delivery (NOT ATTEMPTED )[/TD]
[/TR]
</tbody>[/TABLE]
please suggest how can i attach the sample file.
 
Upvote 0
I've already given you a possible solution.
Try to use the IFS function in the fashion of

IFS(A2="Tomorrow",B2="Spoken to Mr, as per Consignee want shipment delivery on dated. 20.08.2018 (customer not available)",A2="Residence closed",B2="Spoken to Mr, as per Consignee want shipment delivery on dated. 20.08.2018 (residence close)") <-- add further if statements

And try an online file hoster, like I already mentioned in my previous post.
 
Upvote 0
Hi,

There's no link to any uploaded file...

May be just a VLOOKUP:


Book1
ABC
1AWB NoRemarkReason
212345678cash not readySpoken to Mr, as per Consignee cash not ready want delivery on 20.08.2018
3
4
5TomorrowSpoken to Mr, as per Consignee want shipment delivery on dated. 20.08.2018 (customer not available)
6Residence closedSpoken to Mr, as per Consignee want shipment delivery on dated. 20.08.2018 (residence close)
7Cash not readySpoken to Mr, as per Consignee cash not ready want delivery on 20.08.2018
8Not RespondTry to Mr, call not respond, will next attempt 20.08.2018 (short address) SMS SEND
9UnreachableTry to Mr, call not reachable, will next attempt 20.08.2018 (customer not available) SMS SEND
10SwitchedoffTry to Mr, call switch off, will next attempt 20.08.2018 (customer not available)SMS SEND
11Self CollectSpoken to Mr, as per Consignee he will self-collect from office
12Double orderSpoken to Mr, as per Consignee want to cancelled shipment dueDOUBLE ORDER
13RTOSpoken toMr, as per Consignee want to cancelled shipment due CHANGE OF MIND
14CancelledSpoken to Mr, as per Consignee want to cancelled shipment due DELAY IN DELIVERY
15Out of stationSpoken to Mr, as per Consignee want shipment delivery on dated. 20.08.2018 (out off station)
16Office closedSpoken to Mr, as per Consignee want shipment delivery on dated 20.08.2018 (Office closed)
17MisroutMisrout within city
18ODASpoken to Mr, as per Consignee shipment address is out of delivery area
19Non attemptSpoke to Mr, apologised and committed to next day delivery (NOT ATTEMPTED )
Sheet315
Cell Formulas
RangeFormula
C2=VLOOKUP(B2,A5:B19,2,0)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
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