![]() |
|
#1
|
|||
|
|||
![]()
Hi, I have two tables:
Table1 has two columns, A and B, that will take data entry. Table2 will have 3 columns, D will just pull whatever's in A, E and F will do a formula on B and report. Easy enough...what I'd really like to do is make it so that whenever I add a new row to A and B, the subsequent row in DEF will auto-populate. Perhaps there's a better way than using tables? |
#2
|
|||
|
|||
![]()
Do you have the Table2 on separate sheet, or on same sheet with Table1? I hope you are using Defined Tables - when formula is same for whole Defined Table column, it auto-populates whenever you add new rows.
When on same sheet, and you want to report all records of your data, then there is no reason to have 2 separate Tables. Simply add those calculated columns into same Table. In case you want to print out 1st column values and calculated columns, add a calculated column which duplicates column A too. Like Column A; Column B; Column C = [@[Column A]]; Column D = Formula1; Column E = Formula2 To get the printout from columns C:E only: Define a dynamic Named Range, which includes those columns; Set the Print Area for sheet equal to this Named Range. In case you want to report some subset of records, then you need a separate Report sheet, where user can determine filter conditions, and a Report Table reads matched info from Data Entry sheet. Report Table must have enough records to return any data, and can have any number of empty rows at bottom. For printout, you define Named range which includes all non-empty records in Report Table (probably you need a calculated column there which registers records with any data), and you set Print Area for Report sheet equal to this Named Range. |
#3
|
||||
|
||||
![]()
Are you really still using Office 2010?
|
#4
|
|||
|
|||
![]()
No - O365 enterprise. I didn't notice the header...updated.
|
#5
|
||||
|
||||
![]()
In that case, the likes of:
=HSTACK(Table1[Hdr1],Table1[Hdr2]/2,Table1[Hdr2]^2) at cell D2. The result is NOT a proper Excel Table, and it won't work if you try to make it a table. 2023-01-27_153524.png Column E is half, and column F is squared. |
#6
|
|||
|
|||
![]()
Amazing tool, but our Enterprise version of O365 is still 2108 and it looks like hstack came out with v2203. Thanks, this may do it.
|
#7
|
|||
|
|||
![]() Quote:
Yes, Defined tables. Two separate tables: here's my reasoning - Table1 is for a barcode scanner data entry...using a defined table is nice because when you scan the data into column A and then into B, it goes to the next row-column A automatically without keyboard input. I can focus on scanning with an occasional glimpse back at the laptop to make sure nothing was missed. I used to do this all with one table, as you suggested, by unlocking columns AB then protecting the sheet and unchecking Select Locked Cells to make data entry easier. This worked great for me but I want to share this template with my team. In the end what I'd like is a way to scan data into the two columns without keyboard input, and be able to copy the massaged data into our database tool. I thought if I could set it up with two Tables I could avoid the need to protect and unprotect the sheet for the most user-friendliness. |
#8
|
|||
|
|||
![]() Quote:
Have calculated columns in your Table 1, but hide them. This ensures calculations are made when data are read in, but the Table will work like with 2 columns only; Try to use FILTER() to get wanted report data displayed separately (I'm currently only aware there is such function in latest versions, but I have never used it. You have to test yourself, is it possible to get all 3 columns of data returned without applying any conditions). |
#9
|
||||
|
||||
![]() Quote:
=INDEX(Table13,ROW(Table13)-ROW(Table13[#Headers]),{1,3,4}) See Sheet1 (2) of the attached. If you want to include headers in the result: =INDEX(Table13[#All],ROW(Table13[#All])-ROW(Table13[#Headers])+1,{1,3,4}) |
#10
|
||||
|
||||
![]() Quote:
=Table1[Hdr1] =Table1[Hdr2]/2 =Table1[Hdr2]^2 |
#11
|
|||
|
|||
![]()
Thanks Folks, this seems to do the trick. Much appreciated!
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Auto-Entering Values into a Column in a Table based on Value in Adjacent Column | nytvsh | Excel | 2 | 12-06-2021 12:33 AM |
![]() |
serrix | Word | 3 | 02-24-2016 12:19 AM |
Scanning Barcodes Populating Table with Info | Sueade | Excel | 0 | 11-10-2015 05:51 PM |
Populating a table cell wit document properties | milena | Word VBA | 2 | 04-15-2015 07:28 AM |
![]() |
mpdsal | Word VBA | 10 | 10-29-2012 07:40 AM |