Forum

Notifications
Clear all

LET Formula

3 Posts
2 Users
0 Reactions
207 Views
(@rjplunkett)
Posts: 3
Active Member
Topic starter
 

I have Excel 365 Enterprise Version which includes the LET fx and have created LET formulas in other workbooks, but I am having difficulty with Excel accepting this formula:

=LET(
mon1,XLOOKUP($B46,'Current Month S&OP'!$A$67:$A$91,'Current Month S&OP'!H67:H91),
mon2,XLOOKUP(B46,'Current Month S&OP'!$A$67:$A$91,'Current Month S&OP'!i67:i91),
mon3,XLOOKUP(B46,'Current Month S&OP'!$A$67:$A$91,'Current Month S&OP'!i67:i91),
mon0,'Gross Sales'!$BC7,
if('Gross Sales'!$AC$44="YES",mon0+mon2+mon3,if('Gross Sales'!$AD$44="YES",mon0+mon1+mon3,mon0+mon1+mon2))
)

Excel is not recognizing this as a formula and returning the "There is a problem with this formula..." message box.

The named range of mon0 is also returning a NAME# error when I select that name, while the other names are returning 0.  

Does anyone see an error in the formula that I am overlooking?

 
Posted : 10/07/2024 6:04 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Rodney,

mon1 is considered a cell reference. e.g. if you CTRL+G and enter MON1, you'll be taken to column MON.

Try changing mon1 to mon_1 and likewise for the other mon names you have.

Mynda

 
Posted : 11/07/2024 12:35 am
(@rjplunkett)
Posts: 3
Active Member
Topic starter
 

Duh!  That was the problem.  I made that fix and then reverted to a VLOOKUP as the I just didn't have the time to figure out how to make the XLOOKUP point to the right lookup array column, which is dynamic.  I'll figure that one out in future, but this worked well.  Thank you. 

 
Posted : 11/07/2024 7:57 am
Share: