Adding values to a table automatically

Maxim Srour

I have a large master register of items and a table that is used to summarize this information. Each job has a 'Quote Number', and a flag that determines whether it should be shown on a given table (the flags are 0%, 20%, 50%, 80%, 100%). The master contains all of the information tied to the job, whereas the reporting tables need to filter out specific jobs that have a given flag.

At the moment, an admin must manually filter the jobs and copy-paste the quote number into the correct table, which will then index-match all the data it needs and so on. We are trying to automate this process so that the tables always have the correct jobs in them, especially since the flags change on a day to day basis.

I have tried using various functions in cell, such as IndexMatch (only returns the first value as it should), if statements, but I can't figure out a way to get this done. Is there a way to do this natively in excel without VBA, or is that my best bet? I'd personally prefer to do this without VBA since it makes it much easier to work with, but if it really requires it, I already have figured out how to do it.

A side note: I can't use pivot tables, they don't work the way we need them, so while they would automatically filter jobs in the way I need, they have far too many short-comings for me to be able to use them.

robinCTS

Yes, this can be done natively without using VBA. It requires the use of array functions, though.

The following solution will work provided the quote numbers don't contain any non-numeric characters.

Worksheet Screenshot

Array enter (Ctrl+Shift+Enter) the following formula in B3 and copy-paste/fill-down into the rest of the table column (don't forget to remove the { and }):

{=SMALL(IF($G$2:$G$10=$B$1,$F$2:$F$10,FALSE),ROW()-ROW(B$2))}

Note that while I've used B1 to hold the flag value, this could be hard-coded differently for each of the summary tables.

Caveat:

If the summary tables contain less rows than the master register table, then it is possible that they might not show all the matching data (as can be seen in the screenshot above.)

To workaround this, a formula can be added after the end of each of the summary tables to detect this possibility and warn the user to increase the number of rows:

Worksheet Screenshot

Enter the following formula in B8:

=IF(ISERROR(SUM(B3:B7)),"All OK","Add More Rows")

For this workaround to work, the error that occurs in the SMALL() function when no more matching quotes are found cannot be suppressed.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

SQL/MS Access: Adding a automatically updating field in SQL table with sum of values from another table

From Dev

AUTOINCREMENT not automatically adding values in Mysql Workbench IDE

From Dev

Adding values to barplot of table in R

From Dev

How to change the values of two table automatically (MySQL)?

From Dev

automatically get all sql table values

From Dev

How to update table values automatically every day

From Dev

Adding dollar values from visible table column

From Dev

Adding values of one table into another with INSERT INTO ... SELECT

From Dev

Summing values then adding to table and keep summing? PHP

From Dev

Adding only unique values to a table array in django

From Dev

Sqlite adding partial values to table not working

From Dev

Adding dollar values from visible table column

From Dev

Adding form values to a table with backbone and handlebars

From Dev

table tag is adding extra td in tr tag automatically

From Dev

Calculate automatically in a table using jquery when adding or deleting rows

From Dev

How to add values in one table automatically when a condition is true

From Dev

Create a table view depending on values in second table by adding the dates of that table and subtracting the result on first table in SQL

From Dev

Adding values dynamically to the table in Web SQL database using javascript

From Dev

R data.table package - adding values in columns using := operator

From Dev

Adding total values from multiple table in MySQL with php

From Dev

Adding rows to a data.table according to column values

From Dev

adding values of one column and incerting in diffrent table mysql

From Dev

Adding column to a table by concatenating values from other columns

From Dev

create method adding 2 values and assigning to to an attribute in rails table

From Dev

R data.table package - adding values in columns using := operator

From Dev

Adding total values from multiple table in MySQL with php

From Dev

Adding rows to a data.table according to column values

From Dev

Adding values to a newly inserted column in an existing table in PostgreSQL 9.3

From Dev

Adding values in column based on another column of separate table sql

Related Related

  1. 1

    SQL/MS Access: Adding a automatically updating field in SQL table with sum of values from another table

  2. 2

    AUTOINCREMENT not automatically adding values in Mysql Workbench IDE

  3. 3

    Adding values to barplot of table in R

  4. 4

    How to change the values of two table automatically (MySQL)?

  5. 5

    automatically get all sql table values

  6. 6

    How to update table values automatically every day

  7. 7

    Adding dollar values from visible table column

  8. 8

    Adding values of one table into another with INSERT INTO ... SELECT

  9. 9

    Summing values then adding to table and keep summing? PHP

  10. 10

    Adding only unique values to a table array in django

  11. 11

    Sqlite adding partial values to table not working

  12. 12

    Adding dollar values from visible table column

  13. 13

    Adding form values to a table with backbone and handlebars

  14. 14

    table tag is adding extra td in tr tag automatically

  15. 15

    Calculate automatically in a table using jquery when adding or deleting rows

  16. 16

    How to add values in one table automatically when a condition is true

  17. 17

    Create a table view depending on values in second table by adding the dates of that table and subtracting the result on first table in SQL

  18. 18

    Adding values dynamically to the table in Web SQL database using javascript

  19. 19

    R data.table package - adding values in columns using := operator

  20. 20

    Adding total values from multiple table in MySQL with php

  21. 21

    Adding rows to a data.table according to column values

  22. 22

    adding values of one column and incerting in diffrent table mysql

  23. 23

    Adding column to a table by concatenating values from other columns

  24. 24

    create method adding 2 values and assigning to to an attribute in rails table

  25. 25

    R data.table package - adding values in columns using := operator

  26. 26

    Adding total values from multiple table in MySQL with php

  27. 27

    Adding rows to a data.table according to column values

  28. 28

    Adding values to a newly inserted column in an existing table in PostgreSQL 9.3

  29. 29

    Adding values in column based on another column of separate table sql

HotTag

Archive