Multiple If Statement

Datatellsall2

New Member
Joined
Jul 17, 2018
Messages
23
Hello,

I can't seem to obtain the necessary information for a column I'm trying to calculate. Please see below:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Unique Identifier[/TD]
[TD]Day of Entry[/TD]
[TD]Day of call?[/TD]
[TD]Timing of Entry[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]1[/TD]
[TD][/TD]
[TD]Before Call[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]2[/TD]
[TD][/TD]
[TD]Before Call[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]3[/TD]
[TD]Yes[/TD]
[TD]Day of Call[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]3[/TD]
[TD]Yes[/TD]
[TD]Day of call[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]5[/TD]
[TD][/TD]
[TD]After Call[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]6[/TD]
[TD][/TD]
[TD]After Call[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]7[/TD]
[TD][/TD]
[TD]After Call[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]1[/TD]
[TD][/TD]
[TD]Before Call[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]2[/TD]
[TD]Yes[/TD]
[TD]Day of Call[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]2[/TD]
[TD]Yes[/TD]
[TD]Day of Call[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]3[/TD]
[TD][/TD]
[TD]After Call[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]4[/TD]
[TD][/TD]
[TD]After Call[/TD]
[/TR]
</tbody>[/TABLE]

I'm trying to use a formula to calculate the last column. I tried using the following, but it doesn't work: =IFNA(IFS(C3="Yes","Day of Call",B3>B2&AND(C3=""),"After",B3<B2&AND(C3=""),"Before"),"After")

Any help would be greatly appreciated.

Thanks,
Matt
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Not 100% sure if this is what you are looking for, but try

=IFS(C3="Yes", "Day of Call", AND($B$3<B2, C3=""), "After Call", AND($B$3>B2, C3=""), "Before Call")
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,596
Members
452,657
Latest member
giadungthienduyen

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