Expand Cell depending on content

FatalLordes

Board Regular
Joined
Dec 22, 2017
Messages
76
Office Version
  1. 365
Platform
  1. Windows
Hey all

Firstly, I'm using Excel on the Web so I do have limitations (no VBA, no macros).

I've created a report which grabs data from various tables using functions but I have come across an issue when there is text in the table that is larger than what is in my report. I thought the cell would auto resize or wrap depending upon the content it is grabbing but it would seem it can't do that due the cell actually containing a formula. But please correct me if I'm wrong.

For example, my formula in my E23 cell is

=FILTER(Medical!B2:F999,Medical!A2:A999=B3)

And what it does is go to the Medical sheet and look for every line where the unique field matches what is in B3. This is working find BUT what it is not doing is changing the cell dynamics based on the content it goes and grabs. Currently the report is standard one row height and I've set the cell to say wrap, which it is doing, but it doesn't automatically set the cell height based on the content. I have to manually do that each time. Is there a way to make it automatically do this when the cell content changes whenever B3 is set to something different?

For example, picking B3 to match "Fred" may only mean a couple of words in E23 once it has pulled the data. But change B3 to "Barney" and there may be a number of lines in E23 but it doesn't automatically expand out.

So I guess I'm asking how can I FORCE it to auto set the height of cells once an entry is put in B3? I hope this makes sense :)
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Unfortunately, you can't. A cell will not resize simply because the formula has re-calculated.
 
Upvote 0

Forum statistics

Threads
1,224,810
Messages
6,181,079
Members
453,021
Latest member
Justyna P

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