Hide or unhide a cell base on text in a different cell - Either VBA or formula solution.

Liam_1988

New Member
Joined
Apr 30, 2020
Messages
21
Office Version
  1. 2013
Platform
  1. Windows
Hi,

I've been using VBA for about 6 months or so (hobbyist). I'm currently working on a workbook for my job and I'm completely stuck.

XABCD
1​
Sent By:
2​
Date Sent:
3​
Method:Tracking #:

I have the above in place. I'm trying to have it so that C3 & D3 are hidden unless B3 (which has a Data Validation list assigned to it) says "Postal".

I don't mind if this achieved with a Formula or VBA.

Please Please help it's driving me crazy!
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,614
Office Version
  1. 365
Platform
  1. Windows
In what way?
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,614
Office Version
  1. 365
Platform
  1. Windows
As VBA is case sensitive, is the cell value Postal, or maybe postal or POSTAL?
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,614
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

What is the Exact value that you are putting into D83
 

Liam_1988

New Member
Joined
Apr 30, 2020
Messages
21
Office Version
  1. 2013
Platform
  1. Windows
This is the piece I'm working on:
1608292620393.png


Cell D84 (which is a merged cell D84+E84) is the cell next to "Method", and the box with "(POSTAL ONLY) Tracking #:" is row 87 which is what I want to remain hidden unless Postal is in D84.

I hope this helps.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,614
Office Version
  1. 365
Platform
  1. Windows
The problem will almost certainly be down to the fact you are using merged cells. They are an abomination & should be avoided like the plague.
I would strongly advise you get rid of them & simply make column D wider.
 

Watch MrExcel Video

Forum statistics

Threads
1,129,697
Messages
5,637,870
Members
416,986
Latest member
zmartee

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
Top