
18 So.3d 741 (2009)
Charles Michael ALLEN, Appellant,
v.
STATE of Florida, Appellee.
No. 2D08-4980.
District Court of Appeal of Florida, Second District.
October 16, 2009.
Peter A. Sartes of Law Offices of Tragos & Sartes, Clearwater, for Appellant.
Bill McCollum, Attorney General, Tallahassee, and Richard M. Fishkin, Assistant Attorney General, Tampa, for Appellee.
KHOUZAM, Judge.
Charles Michael Allen appeals the judgment entered following a jury's verdict of guilt for trafficking in cocaine in the amount of 400 grams or more but less than 150 kilograms. Because Allen never exercised even temporary dominion and control over the cocaine, the State's case rested exclusively on the theory that Allen purchased *742 the cocaine. The evidence was sufficient to establish that Allen attempted to purchase cocaine. However, the evidence was not sufficient to establish that a purchase took place. Accordingly, we reverse and remand for entry of a judgment for the lesser-included offense of attempted trafficking in the amount of 400 grams or more but less than 150 kilograms and for resentencing in conformity therewith. See § 924.34, Fla. Stat. (2007); see also State v. Sigler, 967 So.2d 835, 844 (Fla.2007) (opining that when all of the elements of a lesser-included offense have been determined by the jury, statutory provision that allows an appellate court to reverse a judgment and direct the trial court to enter a judgment for a lesser-included offense "is a valid exercise of the legislative prerogative allowing appellate courts to direct a judgment for such an offense").
Reversed and remanded.
FULMER and WALLACE, JJ., Concur.
