Computer problems,Computer help
*AX SOFT>>>Software

Intermediate Excel Formula(s) Question?


I have two columns: column A is "Day of Week" and column B is "Sales".
I want to create a formula(s) that will search the "Day of Week" column for "Friday", take the matching "Sales" number in adjacent column B and include it in an average formula.
In other words, I would like to calculate the average sales for Friday as I continue to add data to column A over time.
I am aware that I can 'sort' this data by day of week and quickly get an average that way. However, I do not want to sort the data in this manner and prefer to have a formula do this work automatically.
Please help! Thanks.
James

Thanks for the responses! One more question. If I have the date (MM:DD:YY) in one column and need to convert that to a Date in another column, how can I accomplish this? Thanks!

Two ways to do this:

1) SUMIF/COUNTIF - this gets the total for all the Fridays, and then divides it by the number of Fridays found to get the average:

=SUMIF(A1:A100, "Friday", B1:B100) / COUNTIF(A1:A100, "Friday")

2) AVERAGE array function - this uses the Average function, but only includes rows where column A is "Friday". Input this using Ctrl-Shift-Enter, rather than just Enter:

=AVERAGE(IF(A1:A100="Friday", B1:B100, ""))

I hope this helps, but add more detail or e-mail if you need more info.
Good luck.
.

Let's say A1 and B1 are your column headings, and A2:B366 contains your sales data. You can use the formula:

=SUMIF(A2:A366,"Friday",B2:B366)
/COUNTIF(A2:A366,"Friday")



--
garfield-n-odie
Microsoft MVP 2005-2008
http://mvp.support.microsoft.com/

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook
Related information
  • Where can i download a free trial of microsoft powerpoint?

    You can download the full version of OpenOffice.org, which is not only compatible with the same files but completely free, at ...

  • How to install vista (with out copy ) just original?

    Go to Microsoft's website and get your PC scanned. See if its vista compatible or not. If not, return the pack and get $600 back, otherwise install it. windows vista upgrade advisor: ...

  • Does anyone know of an excellent Dvd burning program?

    I use total video2dvd author, very easy to use and work great for me, you can download this software FREE: ...

  • HELP? How DO I Convert A DVD File To A Video File?

    Download Iriverter-...

  • Will Oblivion and or Morrowind work on My Windows Vista?

    Go to this website and run the benchmark. ...

  • How do I get my shut down/restart button to come back on my start menu?

    Read this - ...

  • How to decompress rar files in Linux ?

    System>Administration>Synaptic Package Manager Search for and install unrar LUg.

    ...
  • If a hard drive was formatted as 2 drives is there a way to return to one volume?

    you can use gparted: ...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster