Calculating two dates IF the cell contains content

foxglove85

New Member
Joined
Oct 28, 2022
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
I am not excel savy at all but I need help! Depending on if there is a date in the field, I need the results to populate in B3. I got two dates (difference between E9 and B9). But If there were to be a date in B12 (as opposed to B9) and a date in E9, can I get the result to populate in B3? Same with using E12 as opposed to E9...and either a start date in B8 or B12? There will only be two dates but it will depend on which start date cell is applicable and which end date cell is applicable. I hope this makes sense! Thank you!

Calculator.PNG
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
how about
=DAYS(MAX(E9,E12),MAX(B9,B12))

Book1
ABCDEF
1
2
31
4
5
6
7
8
91/1/221/2/22
10
11
122/1/222/2/22
13
Sheet1
Cell Formulas
RangeFormula
B3B3=DAYS(MAX(E9,E12),MAX(B9,B12))
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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