Auto-move data in a range w/o VBA?

thewiseguy

Well-known Member
Joined
May 23, 2005
Messages
954
Office Version
  1. 365
Platform
  1. Windows
Here is a range of data where each cell references others from another sheet:

Cell Formulas
RangeFormula
M82M82=IF('Project Summary'!F4>0,"Auxiliary Products (see materials summary","")
M83M83=IF('Project Summary'!F5>0,"Additional Materials","")
M85M85=IF('Project Summary'!F6>0,"Recycling of Old Fluorescent Lamps","")
M86M86=IF('Project Summary'!F7>0,"Rental Equipment (lifts and/or dumpsters)","")
M87:M89M87=IF('Project Summary'!K16="yes",'Project Summary'!J16,"")



Depending upon the referenced cells, I would like the outputs to be condensed or have no gaps. Essentially, I would like the data to fill upward if there would be gaps, so something like this:

Cell Formulas
RangeFormula
M83M83=IF('Project Summary'!F6>0,"Recycling of Old Fluorescent Lamps","")
M84M84=IF('Project Summary'!F7>0,"Rental Equipment (lifts and/or dumpsters)","")
M85:M87M85=IF('Project Summary'!K16="yes",'Project Summary'!J16,"")


Is this possible without VBA?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hi TheWiseGuy,

As the text moves up you may want to add some explaining text to the three numbers which appear.

If you cut & paste your existing formulae somewhere else (another tab, or like my example some cells off to one side) then you can just pull across the cells with values:

Cell Formulas
RangeFormula
CC82CC82=IF('Project Summary'!F4>0,"Auxiliary Products (see materials summary","")
CC83CC83=IF('Project Summary'!F5>0,"Additional Materials","")
M80:M89M80=IFERROR(INDEX($CC$80:$CC$89,AGGREGATE(15,6,ROW($CC$80:$CC$89)-ROW($CC$79)/($CC$80:$CC$89<>""),ROW()-ROW($M$79))),"")
CC85CC85=IF('Project Summary'!F6>0,"Recycling of Old Fluorescent Lamps","")
CC86CC86=IF('Project Summary'!F7>0,"Rental Equipment (lifts and/or dumpsters)","")
CC87:CC89CC87=IF('Project Summary'!K16="yes",'Project Summary'!J16,"")
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,730
Members
448,987
Latest member
marion_davis

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