My data doesn't automtically continue when I add info into its associated table

Status
Not open for further replies.

carrrrlitos17

New Member
Joined
Jul 7, 2022
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Hello again,

I find myself with two problems.

Context: I have a table that lists out what each company supplies. If there are multiple products for a company, the company is relisted plus all the contact info and thus, it can get a little repetitive (See img. Table). To combine the info, I had to make that last column to list the combined info, with the function being =COUNTIF($E$2:E2,E2)&":"&TEXTJOIN("|",,D2,B2)

I then made another sheet where companies can be listed and each of their products be listed all in one row, followed by their contact info (so each company only has one row not multiple) (See img Current new sheet).

Continuing to look at that image from left to right, my functions in each Column are as follows:

=UNIQUE(Table2[Company])

=TEXTJOIN(CHAR(10),,FILTER(Table2[For Table],Table2[Company]=A22))

=TEXTJOIN(CHAR(10),,UNIQUE(FILTER(Table2[Contact],Table2[Company]=A22," ")))


I have noticed that when I add a new line(s) to the original table, my process becomes sloppy.

Problem 1) In the table, my last column function seems to lose track and appears like this (see New Table) I notice that the function on what had once been the last row changes from being =COUNTIF($E$2:E261,E261)&":"&TEXTJOIN("|",,D261,B261)
to
=COUNTIF($E$2:E263,E261)&":"&TEXTJOIN("|",,D261,B261)

The problem lies in the range area of the COUNTIF, how do I allow it to keep updating forward?

Problem 2) (see problem 2) the only thing that carries over is the Unique function that lists the company, but the other columns dont fill in.

All in all, my goal is to be able to add new companies to my table and have that data be added to my other sheet without a problem.

Thank you, sorry for the wordy explanation
 

Attachments

  • Table.png
    Table.png
    140.8 KB · Views: 4
  • Current New Sheet.png
    Current New Sheet.png
    16.1 KB · Views: 4
  • New Table.png
    New Table.png
    7.1 KB · Views: 5
  • Problem 2.png
    Problem 2.png
    7.9 KB · Views: 4

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Status
Not open for further replies.

Forum statistics

Threads
1,214,986
Messages
6,122,611
Members
449,090
Latest member
vivek chauhan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top