My lack of understanding of excel functions and formulas may have me going down the wrong path possibly even leading to the wrong question. So here it is:
I have 4 salesman
I have rows for each salesman and columns for each month of the year and within the cells are the totals sales of that salesman for that month.
On the top of the sheet I want it to identify the salesman that made the most sales for the current month (self updating as the months change throughout the year)
So what i've done is :
Sheet33!B3 Cell identifies the month of the year numerically. (example, Jan=1, Feb=2, March=3, etc..)
L1 Cell identifies the highest dollars sold for the current month of the salesman =IF(Sheet33!B3=1,(MAX(B45,B55,B63,B87)),IF(Sheet33!B3=2,(MAX(C45,C55,C63,C87)),IF(Sheet33!B3=3,(MAX(D45,D55,D63,D87)),IF(Sheet33!B3=4,(MAX(E45,E55,E63,E87)),IF(Sheet33!B3=5,(MAX(F45,F55,F63,F87)),IF(Sheet33!B3=6,(MAX(G45,G55,G63,G87)),IF(Sheet33!B3=7,(MAX(H45,H55,H63,H87)),IF(Sheet33!B3=8,(MAX(I45,I55,I63,I87)),IF(Sheet33!B3=9,(MAX(J45,J55,J63,J87)),IF(Sheet33!B3=10,(MAX(K45,K55,K63,K87)),IF(Sheet33!B3=11,(MAX(L45,L55,L63,L87)),IF(Sheet33!B3=12,(MAX(M45,M55,M63,M87)),("tommy help!")))))))))))))
Now I'm trying to ask excel to first look at Sheet33!B3 to know what month it is
Then I'm asking it to check against the data for that month, if the sales equal the max sold identified in L1 to display the salesman who made those sales. Example:
IF Sheet33!B3=5, and IF L1=F45 then display "Lucas", otherwise IF L1=F55 then display "John", otherwise IF L1=F63 then display "Aaron", otherwise IF L1=F87 then display "T&M",
OTHERWISE IF Sheet33!B3=6, and IF...the formula written on the previous line would repeat itself for every month of the year.
The formula i though would get me what I need i wrote as follows (this is only written to see if i can get it to work for months 5,6&7):
=IF(Sheet33!B3=5,IF($L$1=F45,"LUCAS",IF(Sheet33!B3=5,IF($L$1=F55,"JOHN",IF(Sheet33!B3=5,IF($L$1=F63,"AARON",IF(Sheet33!B3=5,IF($L$1=F87,"T&M",),IF(Sheet33!B3=6,IF($L$1=G45,"LUCAS",IF(Sheet33!B3=6,IF($L$1=G55,"JOHN",IF(Sheet33!B3=6,IF($L$1=G63,"AARON",IF(Sheet33!B3=6,IF($L$1=G87,"T&M",),IF(Sheet33!B3=7,IF($L$1=H45,"LUCAS",IF(Sheet33!B3=7,IF($L$1=H55,"JOHN",IF(Sheet33!B3=7,IF($L$1=H63,"AARON",IF(Sheet33!B3=7,IF($L$1=H87,"T&M",),("tommy help!"))))))))))))))))))))))
After I get it working, I would copy, paste and adjust accordingly to include all the months of the year.
Unfortunately what I'm doing is getting me a FALSE response.
Help?
Thanks in advance!
Bookmarks