DYNAMIC EXCEL REPORT - Make Excel Formula automatically add itself when new rows added

0 votes

I have a table in Sheet1 that looks like this

**Sport**
Basketball
Basketball
Basketball
Volleyball
Volleyball
Football
Football
Football
Football
Football
Football
Hockey
Hockey
Hockey

I have a table in Sheet2 that looks like this:

SPORT   Basketball  Volleyball  Football    Hockey
SCORE       3           2          6           3

I applied the following formula in B1:

 =TRANSPOSE(UNIQUE(FILTER(Sheet1!$A$2:$A$15,Sheet1!$A$2:$A$15<>"")))

The formula in B2:

 =COUNTIF(Sheet1!$A$2:$B$15,Sheet2!B1)

When Sheet1's column, however, is updated For instance, if one of the hockey fields is converted to a golf course, the HEADER is modified, but the formatting and formula below are not transferred automatically.

SPORT   Basketball  Volleyball  Football    Hockey    Golf
SCORE       3           2          6           3

The score for Gold is zero, as you can see. I require automatic filling of this. Is there a way for Excel to "pull" the formula that is adjacent to the column into the newly created row automatically?

Jan 6 in Others by Kithuzzz
• 28,700 points
64 views

1 answer to this question.

0 votes

This is your formula:

=COUNTIF(Sheet1!$A$2:$B$15,Sheet2!B1)

Change it to:

=COUNTIF(Sheet1!$A$2:$B$15,B1#)
answered Jan 6 by narikkadan
• 53,160 points

Related Questions In Others

0 votes
1 answer

Add some word to all or some rows in Excel?

Solution: Select All cells that want to change. Right ...READ MORE

answered Nov 11, 2022 in Others by narikkadan
• 53,160 points
64 views
0 votes
1 answer
0 votes
1 answer

How to automatically nest rows of an Excel spreadsheet using level values?

More grouping levels have been added to ...READ MORE

answered Nov 21, 2022 in Others by narikkadan
• 53,160 points
100 views
0 votes
1 answer

How to add text on new page in word doc via excel vba

First start with: objDoc.Range.Insertafter vbCr & Chr(12) & ...READ MORE

answered Nov 25, 2022 in Others by narikkadan
• 53,160 points
195 views
0 votes
1 answer

Retrieve epay.info Balance with VBA and Excel

This code should log you in, provided ...READ MORE

answered Sep 5, 2018 in Blockchain by digger
• 26,740 points
530 views
0 votes
1 answer

How to load file to Excel Power query from SFTP site

Currently, I don't think there is a ...READ MORE

answered Dec 3, 2018 in Power BI by Upasana
• 8,620 points
2,408 views
0 votes
1 answer

Using VBA Excel to create a gramatically correct list

The Excel AND function is a logical ...READ MORE

answered Feb 9, 2022 in Others by gaurav
• 22,940 points
117 views
0 votes
2 answers

How to copy a formula horizontally within a table using Excel VBA?

Hi so basically, create an adjacent column ...READ MORE

answered Feb 16, 2022 in Others by Edureka
• 13,630 points
294 views
0 votes
1 answer

When a row is added to one sheet, automatically add a row to another sheet

Use the VLOOKUP function. Your Spreadsheet 2's first column will ...READ MORE

answered Dec 10, 2022 in Others by narikkadan
• 53,160 points
136 views
0 votes
1 answer

Excel formula gives error when write using Apache-poi library in Java

I tested some sample code. The cell ...READ MORE

answered Nov 5, 2022 in Others by narikkadan
• 53,160 points
239 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP