Excel Help, Formula to not show a blank cell

eford

New Member
Joined
Apr 1, 2016
Messages
14
Ok guys I have a questions that I hope you can help with.

I have a pivot table that has this information among other values
MonthsAgent Code
4AA1234567
4AA2345678
5AA3456789
28AA4567891
29AA5678912
1AA6789123

<tbody>
</tbody>


What I am trying to accomplish is write a formula that will show the value for all AA #s that have less than 12 months.

The formula I am using does not give me the result I want:

=IF(ISBLANK('Sheet tab name'!$C5),""IF('Sheet tab name'!$B5<=12,'Sheet tab name'!$C5,""))

And it gives me this result:

AA1234567
AA2345678
AA3456789
AA6789123

<tbody>
</tbody>

What changes do I need to make to return this result:

AA1234567
AA2345678
AA3456789
AA6789123

<tbody>
</tbody>

Thanks for all your help.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Looks like you just don't want to see rows that are greater than 12 months. I don't think that can be done with a formula. Try evaluating each row one at a time with vba and hiding any >12. ---assuming all this is one sheet---
 
Upvote 0

Forum statistics

Threads
1,217,381
Messages
6,136,228
Members
450,000
Latest member
jgp19

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