formula not returning blank

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,561
Office Version
  1. 2021
Platform
  1. Windows
I have the following array formula that does not return a blank where there is no text in Col A in sheet "detail by month"


={IF('Detail by Month'!A6="","",TRANSPOSE('Detail by Month'!$A6:A500))}

It would be appreciated if someone could kindly assist
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
I have the following array formula that does not return a blank where there is no text in Col A in sheet "detail by month"


={IF('Detail by Month'!A6="","",TRANSPOSE('Detail by Month'!$A6:A500))}

It would be appreciated if someone could kindly assist

Stop if I am on the wrong track, but your formula only works if there is a blank cell: i.e. if the cell has text, it will remain that text.

You need a second If statement in your formula. Something like =IF(A6="","",IF(A6="?*","hot","cold"))

Basically, if A6 is Blank, it returns blank, but if there is text in it, it does the second formula.

Hope that helps, if not, reply back and we see if we can fix it!
 
Upvote 0
Thanks for the help

See sample data below from another workbook . If for eg A9, A10 has no data , formula must return blank

As can be seen, formula in F2 , G2 etc returns 00/01/00 and not blank


Excel 2012
CDEFGH
2Mark ThompsonCraig ThomasASHLEY Parker00/01/0000/01/0000/01/00
Sick & Training
Cell Formulas
RangeFormula
C2:CZ2{=IF('Training & Sick Leave taken'!A6="","",TRANSPOSE('Training & Sick Leave taken'!$A6:A500))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0
For your formula to work you need to select the entire range where the formula is required and then enter the formula. You seem to be doing this.
When the result is coming from an empty cell the formula returns "0". Your cell format is date mm/dd/yy, so you get 00/01/00
If you are only expecting names to be returned you can format the cells to not display zero.
Otherwise modify the range in this =IF(TRANSPOSE(Sheet5!$A6:A500)=0,"",TRANSPOSE(Sheet5!$A6:A500)) as an array formula
 
Last edited:
Upvote 0
For your formula to work you need to select the entire range where the formula is required and then enter the formula. You seem to be doing this.
When the result is coming from an empty cell the formula returns "0". Your cell format is date mm/dd/yy, so you get 00/01/00
If you are only expecting names to be returned you can format the cells to not display zero.
Otherwise modify the range in this =IF(TRANSPOSE(Sheet5!$A6:A500)=0,"",TRANSPOSE(Sheet5!$A6:A500)) as an array formula

That works like a charm!!

I got as far as =IF($A5="","",IF($A5="?*",(TRANSPOSE($E5:F5)),$A5)), which did work to move all of A5 but that it.

Great stuff konew!
 
Upvote 0
Hi Guys

Thanks for your input much appreciated
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,700
Members
448,979
Latest member
DET4492

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