+ Reply to Thread
Results 1 to 5 of 5

Database formulas

  1. #1
    Registered User
    Join Date
    01-19-2022
    Location
    Bucharest
    MS-Off Ver
    2010
    Posts
    3

    Database formulas

    Hello,

    I have this problem that is bugging me because I can't figure out how it's done.
    I know it is something simple, but for some reason I cannot find the answer on google. It's probably because english is not my native language, so I don't really know what to google. I tried and I tried to google anything related to this, but it did not answer my question.

    So the problem is very easy: I have a table, a database, for which I need to count the number of employers, based on a criteria.
    This would be very easily done with a DAVERAGE.
    However, I need to display the average by city.

    I have this already solved in my file, I just can't figure out how it was done and I can't replicate it.
    Please see the screenshot.
    I understand the DAVERAGE formula; I know that I have to press CTRL+SHIFT+ENTER, cause it's an array formula;
    The 3 cells on column C are the cities from the table and the cell marked with blue on column A is the column name of the cities.
    Do I put the cities there manually (copy paste the entire column, remove duplicates?) or how did they get there?
    I know it has something to do with having the column name of the city there as criteria, I just can't figure out how.

    A4:H25 is the database, A4 is the first column name.

    excel2.PNGexcel1.PNG

    So I can you help? I know it's something really stupid.

    Thank you,
    Alina
    Attached Images Attached Images

  2. #2
    Valued Forum Contributor
    Join Date
    11-02-2016
    Location
    NY
    MS-Off Ver
    2010
    Posts
    459

    Re: Database formulas

    I'm hoping this website will help you....by way of example. https://www.tutorialspoint.com/advan...e_function.htm
    Normally, if I could see your entire example, i would show you my results.....but this should hopefully help.

  3. #3
    Registered User
    Join Date
    01-19-2022
    Location
    Bucharest
    MS-Off Ver
    2010
    Posts
    3

    Re: Database formulas

    Hi,

    It does not help me, this is an example where the database formula returns ONE result.
    I need to have the DCOUNT (sorry, I got confused, it was DCOUNT, not DAVERAGE) spread by cities.
    Again, This is already done in the file, I just don't understand how it was done.

    I am attaching the file.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Database formulas

    it is a "Data Table".

    you can create a data table by going to the "Data" tab, then clicking the down arrow of "What-if-Analysis", then selecting "Data Table..."

    what-if-analysis.png

    data-table.png

    see here for more info:

    https://support.microsoft.com/en-us/...2-77542a5ea50b

    https://www.excel-easy.com/examples/data-tables.html

  5. #5
    Registered User
    Join Date
    01-19-2022
    Location
    Bucharest
    MS-Off Ver
    2010
    Posts
    3

    Re: Database formulas

    YES! THANK YOU!
    I did it! I knew it was something simple, but I had no idea what to search for.

    Thank you so much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Large Database - VBA Formulas
    By jsneak in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-26-2019, 05:51 PM
  2. [SOLVED] Managing Formulas in Excel database
    By jacob@thepenpoint in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-01-2014, 02:38 PM
  3. Excel 2007 : database formulas not recalcing??
    By Thackers in forum Excel General
    Replies: 0
    Last Post: 08-10-2011, 10:12 PM
  4. Dragging formulas in large database
    By doctorteeth in forum Excel General
    Replies: 5
    Last Post: 08-31-2010, 06:01 AM
  5. Database type Formulas
    By Smejk in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 09-06-2005, 09:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1