Combining multiple columns into one data set

ShineMagical

New Member
Joined
Jun 19, 2018
Messages
4
Hi everyone,


I am trying to get the area highlighted in yellow to appear and refresh automatically when adding more data as I continue to add data in the future, while also not copying any blank spaces. https://imgur.com/cf6kvJu




Is there a way to do this with a formula?
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
You havent explained why the value in column A suddenly jumps from D to G, same with column B (E to H) so I'll have to assume...

Try

in A11
=IF(D11<>"","D"&ROW(),IF(G11<>"","G"&ROW(),""))
in B11
=IF(E11<>"","E"&ROW(),IF(H11<>"","H"&ROW(),""))

and copy down the columns
 
Upvote 0
You havent explained why the value in column A suddenly jumps from D to G, same with column B (E to H) so I'll have to assume...

Try

in A11
=IF(D11<>"","D"&ROW(),IF(G11<>"","G"&ROW(),""))
in B11
=IF(E11<>"","E"&ROW(),IF(H11<>"","H"&ROW(),""))

and copy down the columns

Ah. Thank you for the reply but I am afraid I wasn't clear enough in my OP.
Columns D and E are calculating a XIRR for an account. Columns G and H are also calculating a XIRR for a different account.

I am trying to have in columns A and B the XIRR calculated for all of the accounts in the spreadsheet, so I have to combine the data sets for all accounts and have the list refresh automatically once more data is entered into columns D/E/G/H.

As an aside, I've already tried referencing the cells in columns D/E/G/H but if the cell in those columns is blank the reference makes a zero value which messes up the XIRR calculation even if you disable showing zeros in the spreadsheet through the advanced options menu.
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

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