Formula help

vharp91

New Member
Joined
Jul 24, 2020
Messages
15
Office Version
  1. 2016
Platform
  1. Windows
I need a formula that will lookup the latest quarter and return the word "latest" and return blank from a range of cells with quarter data in it. Below is a screenshot of what I am working on. So I need column F to populate "latest" in each cell where there is the latest quarter data in column G. So for the below data set, cells F3:F5 and F11 would populate the word "latest" while the other cells in column F would remain blank when looking up from the range of G3:G11. Thank you!
1689379112207.png
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi vharp91,

There's probably a more efficient way but based on the formula from here this will do the job when pasted into cell F3 and copied down to F11:

=IF(G3=LOOKUP(2,1/(COUNTIF($G$3:$G$11,">"&$G$3:$G$11)=0),$G$3:$G$11),LOOKUP(2,1/(COUNTIF($G$3:$G$11,">"&$G$3:$G$11)=0),$G$3:$G$11),"")

Regards,

Robert
 
Upvote 0
Hi vharp91,

There's probably a more efficient way but based on the formula from here this will do the job when pasted into cell F3 and copied down to F11:

=IF(G3=LOOKUP(2,1/(COUNTIF($G$3:$G$11,">"&$G$3:$G$11)=0),$G$3:$G$11),LOOKUP(2,1/(COUNTIF($G$3:$G$11,">"&$G$3:$G$11)=0),$G$3:$G$11),"")

Regards,

Robert
That formula did not work
 
Upvote 0
That formula did not work

That's odd - it did for me :confused:

When you say "did not work" what do you actually mean? Was nothing returned, was an error produced something else??
 
Upvote 0

Forum statistics

Threads
1,215,255
Messages
6,123,896
Members
449,132
Latest member
Rosie14

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