Excel formulas are not copying up

dualwieldbacon

New Member
Joined
May 11, 2021
Messages
8
Office Version
  1. 2016
Platform
  1. Windows
Hi all.

I'm trying to amalgamate two income statements into a separate worksheet for a 'combined income statement'. For some reason, when I try to copy my formulas into my target cells, the formula does not work.

The formula I am using in cell C59 is as follows:
=IFERROR(INDEX('IS-1482272'!$B$5:$G$96,MATCH($B59,'IS-1482272'!$B$5:$B$96,0),MATCH(C$5,'IS-1482272'!$B$5:$G$5,0))+INDEX('IS-2299824'!$B$5:$G$96,MATCH($B59,'IS-2299824'!$B$5:$B$96,0),MATCH(C$5,'IS-2299824'!$B$5:$G$5,0)),0)

This formula is used throughout my target worksheet, but it's not copying correctly into my rows 56 through 58 for some reason. My source data is located in sheets 'IS-1482272' and 'IS-2299824'. The sheet that the formulas are on is 'Income Statement'. I've gone into Formulas -> Calculation Options and I've made sure that 'Automatic' is selected.

Any thoughts??
 

Attachments

  • Income Statement Source 1.JPG
    Income Statement Source 1.JPG
    157.4 KB · Views: 11
  • Income Statement Source 2.JPG
    Income Statement Source 2.JPG
    140 KB · Views: 14
  • Target Sheet.JPG
    Target Sheet.JPG
    180.1 KB · Views: 12

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Any thoughts??
None without seeing the formula in the cell that is not working, and without knowing how you're trying to copy the formula to the other cells.

It could be as simple as trailing spaces in B56:B58 on one of the sheets causing the whole thing to error.

The fact that the formulas in row 59 are working tells me that the column matches are working correctly, but that is the only definite factor that can be established so far.
 
Upvote 0
None without seeing the formula in the cell that is not working, and without knowing how you're trying to copy the formula to the other cells.

It could be as simple as trailing spaces in B56:B58 on one of the sheets causing the whole thing to error.

The fact that the formulas in row 59 are working tells me that the column matches are working correctly, but that is the only definite factor that can be established so far.


Here is the formula from C56: =IFERROR(INDEX('IS-1482272'!$B$5:$G$96,MATCH($B56,'IS-1482272'!$B$5:$B$96,0),MATCH(C$5,'IS-1482272'!$B$5:$G$5,0))+INDEX('IS-2299824'!$B$5:$G$96,MATCH($B56,'IS-2299824'!$B$5:$B$96,0),MATCH(C$5,'IS-2299824'!$B$5:$G$5,0)),0)

I copied the formula to the other cells by highlighting my selection from C59 to G59, then dragging the corner up in to the above 3 rows. I've tried deleting the cells in column B and retyping those accounts (Telephone, Travel, Utilities) but that didn't seem to fix it up.
 
Upvote 0
That should work perfectly fine. If the values in the 2 source sheets are from formulas then I can see a potential problem in the event that one sheet had a value while the other was blank, but given that both sheets have values it should be giving you something.

If this gives you a result that is equal to the value from one of the sheets then that will identify a problem in the other sheet.
Excel Formula:
=IFERROR(INDEX('IS-1482272'!$B$5:$G$96,MATCH($B56,'IS-1482272'!$B$5:$B$96,0),MATCH(C$5,'IS-1482272'!$B$5:$G$5,0)),0)+IFERROR(INDEX('IS-2299824'!$B$5:$G$96,MATCH($B56,'IS-2299824'!$B$5:$B$96,0),MATCH(C$5,'IS-2299824'!$B$5:$G$5,0)),0)
To test for additional problems, try
Excel Formula:
=MATCH($B56,'IS-1482272'!$B$5:$B$96,0)+4
and
Excel Formula:
=MATCH($B56,'IS-2299824'!$B$5:$B$96,0)+4
Do they return errors or numbers? If they return numbers then that will tell you which row the result is coming from in the source sheets (possibly not the correct row). If they return errors then it means that for some reason that (Telephone, Travel, Utilities) in column B are still not matching correctly.
 
Upvote 0
Solution
That should work perfectly fine. If the values in the 2 source sheets are from formulas then I can see a potential problem in the event that one sheet had a value while the other was blank, but given that both sheets have values it should be giving you something.

If this gives you a result that is equal to the value from one of the sheets then that will identify a problem in the other sheet.
Excel Formula:
=IFERROR(INDEX('IS-1482272'!$B$5:$G$96,MATCH($B56,'IS-1482272'!$B$5:$B$96,0),MATCH(C$5,'IS-1482272'!$B$5:$G$5,0)),0)+IFERROR(INDEX('IS-2299824'!$B$5:$G$96,MATCH($B56,'IS-2299824'!$B$5:$B$96,0),MATCH(C$5,'IS-2299824'!$B$5:$G$5,0)),0)
To test for additional problems, try
Excel Formula:
=MATCH($B56,'IS-1482272'!$B$5:$B$96,0)+4
and
Excel Formula:
=MATCH($B56,'IS-2299824'!$B$5:$B$96,0)+4
Do they return errors or numbers? If they return numbers then that will tell you which row the result is coming from in the source sheets (possibly not the correct row). If they return errors then it means that for some reason that (Telephone, Travel, Utilities) in column B are still not matching correctly.

Fantastic! The second formula you gave me helped me identify the problem. It turns out that I have two rows within my source sheets with the heading 'Telephone' (and Travel and Utilities), which was confusing the original formula I had worked out.
 
Upvote 0

Forum statistics

Threads
1,223,630
Messages
6,173,456
Members
452,514
Latest member
cjkelly15

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