IF Function- To reflect changes when another column changes

Rile1

New Member
Joined
Aug 7, 2018
Messages
6
Hi

Need your guidance

I have this following table and I need to add a formula on Column E (i.e. Next Status) which, if Column B changes (i.e. Status) then the Column E (i.e. Next Status) should also reflect a change


Excel table
[TABLE="width: 765"]
<colgroup><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]H[/TD]
[TD]Z[/TD]
[/TR]
[TR]
[TD]Date[/TD]
[TD]Status[/TD]
[TD]Travel Agent Name[/TD]
[TD]Airline Name[/TD]
[TD]Next Status[/TD]
[TD]Log_Date[/TD]
[TD]Booking Created Date[/TD]
[/TR]
[TR]
[TD]21-Aug-18[/TD]
[TD]Pending Booking[/TD]
[TD]ABC[/TD]
[TD]789[/TD]
[TD]Escalation to Travel Manager[/TD]
[TD]1-Aug-18[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]21-Aug-18[/TD]
[TD]Pending Presentation[/TD]
[TD]123[/TD]
[TD]GHI[/TD]
[TD]FALSE[/TD]
[TD]15-Aug-18[/TD]
[TD]17-Aug-18[/TD]
[/TR]
[TR]
[TD]21-Aug-18[/TD]
[TD]Pending Booking[/TD]
[TD]DEF[/TD]
[TD]101[/TD]
[TD]1st Notification to Travel Agent[/TD]
[TD]16-Aug-18[/TD]
[TD]18-Aug-18[/TD]
[/TR]
[TR]
[TD]21-Aug-18[/TD]
[TD]Pending Presentation[/TD]
[TD]456[/TD]
[TD]JKL[/TD]
[TD]FALSE[/TD]
[TD]16-Aug-18[/TD]
[TD]17-Aug-18[/TD]
[/TR]
</tbody>[/TABLE]

The formula which i am trying is the following
=IF(B19="Pending Booking",IF(A19<=H19+7,"1st Notification to Travel Agent",IF(A19>H19+7<=H19+14,"2nd Notification to Travel Agent",IF(A19>=H19+14,"Escalation to Travel Manager", OR(IF(B19="Pending Presentation",IF(A19<=Z19+2,"1st notification to Airline",IF(A19>Z19+2<=Z19+4,"2nd Notification to Airline",IF(A19>Z19+4,"Escalation to Airline Ground Manager")))))))))

Please if you could assist on the formula as Row 2 and 4, doesn't reflect properly

Thanking you for the assistance
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
try this

Code:
=IF(B19="Pending Booking",IF(A19<=H19+7,"1st Notification to Travel Agent",IF(A19>H19+7<=H19+14,"2nd Notification to Travel Agent","Escalation to Travel Manager")),IF(A19<=Z19+2,"1st notification to Airline",IF(A19>Z19+2<=Z19+4,"2nd Notification to Airline","Escalation to Airline Ground Manager")))
 
Upvote 0
this is more readable

Code:
=IF(B19="Pending Booking",IF(A19>H19+14,"Escalation to Travel Manager",IF(A19>H19+7,"2nd Notification to Travel Agent","1st Notification to Travel Agent")),IF(A19>Z19+4,"Escalation to Airline Ground Manager",IF(A19>Z19+2,"2nd Notification to Airline","1st notification to Airline")))
 
Upvote 0
This bit doesn't make sense:

Code:
A19>H19+7<=H19+14

This is where I got to:

Code:
=IF($B19="Pending Booking",IF($A19<=$H19+7,"1st Notification to Travel Agent",IF($A19<=$H19+14,"2nd Notification to Travel Agent","Escalation to Travel Manager")),IF($B19="Pending Presentation",IF($A19<$Z19+2,"1st Notification to Airline",IF($A19<$Z19+4,"2nd Notification to Airline","Escalation to Airline Ground Manager")),""))

WBD
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,314
Members
452,634
Latest member
cpostell

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