Nested IF Statement

godzilla65

Board Regular
Joined
Nov 25, 2004
Messages
122
Hi All,

I am in the final stages of building a formula based, 24hour (15 min interval) Gantt chart, within my workbook

I am struggling with one formula, as follows: I am entering this formula into Cell N5

If C5=Blank, then E5 Otherwise C5, If E5=Blank, then G5 Otherwise E5, If G5=Blank, then I5 Otherwise I5
If I5=Blank, then K5 Otherwise I5,If K5=Blank, Then Blank

Eg: of Data
C5 = 04:15
E5 = Blank
G5 = 12:00
I5 = Blank
K5 = 16:15
Result would be: 04:15

Eg: of Data
C5 = Blank
E5 = Blank
G5 = 12:00
I5 = Blank
K5 = 16:15
Result would be: 12:00

Eg: of Data
C5 = Blank
E5 = Blank
G5 = Blank
I5 = Blank
K5 = 16:15
Result would be: 16:15

Hoping that makes Sense ? and hope you can assist

Cheers Eric, Brisbane, Australia
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Try:

I noticed that the times increase in the cells in your example. If this is true of your data you may be able to use the MIN function as in cell N7 of the example below.
 
Upvote 0
Try:

I noticed that your times increase as you go across if this is true of all your data you may be able to use the MIN function.
Both If and Min shown in example below.
Excel Workbook
CDEFGHIJKLMN
54:1512:0016:154:15
6
74:15
Sheet
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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