I hope i am able to explain myself well and am not asking a duplicate question.
I have a CSV file in which there is a column of sales. In that column i want to apply a logical function like if so that every row in that column is evaluated and returns the maximum value out of the selected rows. I am new to r done all my work in excel, so i am having difficulties.
Price Price Events Units Sales Sales/Event Returned Price
2.31 1 737 1702 1702
2.33 1 928 2162 2162 2.33
2.36 2 1660 3918 1959
2.42 1 861 2084 2084
IN the column Sales per event i want to apply a function in which if(and(Sales_Per_Event$2>Sales_Per_Event$1 , Sales_Per_Event$2>Sales_Per_Event$3 , Price$2 , ""))