Move rows of data depending on whether or not they match rows in other columns

Joined
May 3, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

I'm working with template spreadsheets that get populated via copy/paste and compare volumes of assets in hypothetical what-if scenarios. In the daily workflow, the user manually inserts this information from another tool into Excel and does further analytics. However, the what-if analysis creates an issue where a lot of manual labor needs to be performed in Excel, where a genius function may probably be written. Here are the specifics:

123.PNG


In scenario 1, an asset is subtracted in the what-if analysis in the tool, and when you're pasting it in excel, the right 2 columns (post analysis) no longer match the left 2 columns (pre analysis). I would like the 'asset class 2' value in a row to look at the corresponding value in the **same row** of column 'asset class' and if doesn't match, shift (and keep shifting down) until it finds the identical value.


In scenario 1, an asset is added during the analysis process, and asset class B.2 is created. I would like for the rows in left columns to keep shifting down until they find the identical corresponding row values.

I tried playing around with the OFFSET function, but couldn't produce any effective results. Would love some help from Excel wizard that lurk around here.

Thank you! Let me know if you have questions!
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,224,885
Messages
6,181,583
Members
453,055
Latest member
cope7895

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