Formulae help

MOB

Well-known Member
Joined
Oct 18, 2005
Messages
1,066
Office Version
  1. 365
Platform
  1. Windows
1001 31/12/2011
1001 31/12/2011
1002 31/12/2011
1001 31/01/2012
1003 31/01/2012
1004 31/01/2012
1002 28/02/2012
1004 28/02/2012

I am after a couple of formulae based on the above data - I would enter say 1001 in cell C3 and require the following;

- for all instances of 1001, are the dates all exactly the same (Y/N)
- what is the latest date (highest value) for 1001

Any help would be great :-)
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Try:

=IF(SUMPRODUCT(--(A1:A8=C3),--(B1:B8=VLOOKUP(C3,A1:B8,2,FALSE)))=COUNTIF(A1:A8,C3),"Y","N")

=MAX(IF(A1:A8=C3,B1:B8))

The second formula is an array formula which must be confirmed with Ctrl+Shift+Enter. If correctly entered Excel will surround the formula with curly braces {}.
 
Upvote 0
Try:

=IF(SUMPRODUCT(--(A1:A8=C3),--(B1:B8=VLOOKUP(C3,A1:B8,2,FALSE)))=COUNTIF(A1:A8,C3),"Y","N")

=MAX(IF(A1:A8=C3,B1:B8))

The second formula is an array formula which must be confirmed with Ctrl+Shift+Enter. If correctly entered Excel will surround the formula with curly braces {}.

Superb, thanks!!
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,259
Members
452,901
Latest member
LisaGo

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