Forum Discussion
Formulas wile working with few sheets information
- May 09, 2024
#SPILL! error
if it's not enough space (range wit blank cells) to expand the data by formula.
If we check next row(s)
there are some formulas or data in the next cells. Select and clean (Del) them to empty the space for the dynamic array, it works now
Norman_Glenn On the items worksheet, the formula in column A is returning an extra space character at the end of the text string. For example, the first part of the formula in cell A2 is =B2&IF(logical_test," C "," P "), which returns "WT C ".
Change the formula in cell I22 on the Carry Over Page worksheet to either of the following:
=IF(A3="WT C ",A3:D3,"")
//OR
=IF(TRIM(A3)="WT C",A3:D3,"")
- Norman_GlennMay 01, 2024Brass ContributorI tried the trim formula and it carried over 2 difrent options in stead of the one I was looking for but I'll try it tomorrow in my spread sheet and see how it works
- djclementsMay 02, 2024Silver Contributor
Norman_Glenn Just make sure the value_if_true argument is referencing the correct range or cell that you want to be returned (in the original question above, you've referenced A3:A4, but the formula in cell I22 of the spreadsheet you shared is referencing range A3:D3).
As stated by SergeiBaklan, the FILTER function is probably what you should be using for this scenario. If this is the first time you're hearing about this function, you might want to research it first to get a better understanding of how it works. Some online resources include:
- Microsoft: https://support.microsoft.com/en-us/office/filter-function...
- ExcelJet: https://exceljet.net/functions/filter-function
- YouTube: Excel Lookup to Return Multiple Values with FILTER Function
- YouTube: Excel FILTER Function + Trick to Rearrange Column Order
To reiterate, the source of your original problem with the IF function was the presence of a trailing space character in one of the text strings being compared ("WT C " does not equal "WT C"). Just be aware that any formula or lookup function that compares one value to another (ie: FILTER, XLOOKUP, XMATCH, COUNTIFS, etc.) will all suffer the same fate if leading or trailing spaces exist in one value but not the other. Cheers!
- Norman_GlennMay 02, 2024Brass Contributor
djclements and SergeiBaklan , Thank you for your reply, yes it is ment to be A3:D3, in my sheet their is ment to be a space "WT C" "WT P" is having this space ok or should I try dropping it, I have attached a striped back sheet with both fourmla in it, djclements as you may see I use your formula and the cell just looks blank, must be ok tho as its not returning an error, with SergeiBaklan I have also used your formula, thing with this one is it seams to count down column A till it finds what it looking for and then when transferring it over it uses the same amount it counted down to input answer, any other help with them,