If Statement

helpme290

New Member
Joined
Jul 13, 2015
Messages
33
Need help with if statements. See attached for the spreadsheet.

[TABLE="width: 574"]
<colgroup><col><col><col><col><col span="2"><col></colgroup><tbody>[TR]
[TD][/TD]
[TD="colspan: 5"]What I am trying to do all within Column G is;[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 6"]1) IF Column F is empty take date from Column E - see formula above [/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 5"]2) If column B says "No", column G date +5 days,[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 6"]3) If column B is "yes" and Column C says "no" I want Column G +45 days[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 6"]4) If Column B and G both say "yes" Column G + 75 Days[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
As you have discovered, you cannot upload files to this site. But there are tools you can use to post screen images. They are listed in Section B of this link here: Guidelines for Forum Use.

Also, there is a Test Here forum on this board that you can use to test out these tools to make sure they are working correctly before using them in your question.

Also, it would be helpful if you placed your conditions in the order that you need them evaluated. For example, #4 needs to happen before 3 (or else it will never get to 4 because 3 will be met before 4 will). The big question is should #1 be checked first or last?
 
Last edited:
Upvote 0
I assume that: 1) if F is not empty, then it shows the "base date" we take for G; 2) in your #4 point there is a typo: it's C not G we test. If so, pls try this:

=IF(F1="",E1,F1)+IF(B1="No",5,IF(C1="No",45,75))
 
Last edited:
Upvote 0
Thanks for the reply, I have posted a table below.


The Order that is should Happen is
1)F Column F is empty take date from Column E
2)IF column B says "No", column G date +5 days,
3) IF Column B is "yes" and Column C says "no" I want Column G +45 days
4)If Column B and G both say "yes" Column G + 75 Days

[TABLE="width: 500, align: center"]
<tbody>[TR]
[TD]B
[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]New product[/TD]
[TD]FDA Check[/TD]
[TD]Year[/TD]
[TD]Planned[/TD]
[TD]Actioned[/TD]
[TD]Arrived[/TD]
[/TR]
[TR]
[TD]No[/TD]
[TD]No[/TD]
[TD]2017[/TD]
[TD]8/15/2017[/TD]
[TD][/TD]
[TD]8/20/17[/TD]
[/TR]
[TR]
[TD]yes[/TD]
[TD]no[/TD]
[TD]2017[/TD]
[TD]8/1/2017[/TD]
[TD]7/19/207[/TD]
[TD]7/24/2017[/TD]
[/TR]
[TR]
[TD]yes[/TD]
[TD]yes[/TD]
[TD]2017[/TD]
[TD]12/1/2017[/TD]
[TD][/TD]
[TD]12/6/2017[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,209
Members
453,022
Latest member
RobertV1609

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