Formulas and Conditional Formatting

Dooha

New Member
Joined
Apr 20, 2011
Messages
25
I seem to have some how decided to produce the most complicated spreadsheet in the world (in my head anyway)

I have a formula -

=SUMIF(Flying!B7:B322,">"&EDATE(TODAY(),-9),Flying!L7:L322)

This tells me all the flying I have done in the last 9 months on a separate worksheet.

I have another column O7-O322 which is a remarks column detailing which exercise was carried out on each flight. Example O8 has 'Exercise 17', O9 has 'Exercise 18' written in it. I need to recognise only exercise 18 in column 'O', but for the past 9 months only. Is there anyway I can incorporate the formula above to recognise 'Exercise 18' in column O7-O322, or better still recognising Exercise 18 even if Exercise 18,12, and 19 were written in the same cell.

A slightly easier question -

Im trying to conditionally format a cell where the number turns Green if over 25:00 hrs. I can make it turn Green if the number 25 was in the cell, but when it's in the hours format 25:00, it doesnt recognise it. Not sure how to get around this.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
could you add this to the sumif?

SUMIF(Flying!B7:B322,">"&EDATE(TODAY(),-9), Flying!Find("Exercise 18", O2:O322)>0,Flying!L7:L322)
 
Last edited:
Upvote 0
CF working here

Excel Workbook
EF
730:58
812:00
Sheet5
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E71. / Formula is =F7>"25:00"+0Abc
 
Upvote 0
CF working for me now aswell. Input error on my part, I'm sure you knew that would be the case.

Just got the tough one to crack now.
 
Upvote 0
2003 atm.
You could do something like this...

In Excel 2003 the EDATE function is part of the Analysis ToolPak add-in. When using conditional formatting you can't directly refer to functions in the ATP. So, you need to create this named formula:
  • Goto Insert>Name>Define
  • Name: NineMonthsAgo
  • Refers to: =EDATE(NOW(),-9)
Then, as your conditional formatting formula, you could use something like this:

=AND(B7>NineMonthsAgo,SEARCH("Exercise 18",O7))
 
Upvote 0
I think we are getting somewhere. I have created the named formula, and inserted the other formula. The formula seems work as it diplays as 'True', and 'False' if it is older than 9 months.

So need the formula to add all the hours from L7:L322, that are older than 9 months (taken from B7:B322), and have 'Exercise 18' (taken from O7:O322)

Because of the amount of flying and data involved for all the student pilots, I need this kinda spreadsheet to take the load off and the amount of time and inaccuracies.
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,240
Members
452,898
Latest member
Capolavoro009

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