User Profile
JoeUser2004
Bronze Contributor
Joined 8 years ago
User Widgets
Recent Discussions
Re: Why can't I post long numbers (in the Excel subforum)?
Interesting. I think you are saying I can enter the following by editing after the initial submittal. Testing.... 1/(1/49) is exactly 49.0000000000000,071054273576010018587112426757 Odd: That worked even without editing. Also, I only a.s.s-u-me-d that the long number was the problem. It might be the 1/(1/49). Someday, I'll test more thoroughly. In the meantime, I'll assume that editing after submittal is indeed the workaround. I've encountered that before in other forums. Thanks, Sergei.86Views0likes0CommentsRe: Can anyone explain this behaviour?
RedNectar wrote: But if I calculate the 49 value using a double inverse, i.e. =BITOR(1,1/1/49) [,] I get a #NUM! error Expanding on Sergei's and Hans's correct responses, it might be noted that 1/1/49 (sic) is not the same as the "double inverse" 1/(1/49). 1/1/49 displays 0.0204081632653061 , whereas 1/(1/49) displays 49. Mathematically, 1/1/49 is equivalent to 1/(1*49). Hans correctly explains that 1/(1/49) is not exactly 49, despite appearances. But even the 17-significant-digit value in the XML file is an approximation. In general, it is the minimum number of significant digits that is necessary and sufficient to reproduce the original binary value (*). ----- * Re: 17 "is the minimum number of significant digits that is necessary and sufficient to reproduce the original binary value" .... If Excel did not normally truncate such input to 15 significant digits. (Klunk!) But we can input such numbers with no loss of precision by using Power Query or VBA.55Views2likes2CommentsWhy can't I post long numbers (in the Excel subforum)?
Note that the above is an image. When I try to submit a response that included that as text, I get the following error (again, an image): Why? That is, what consequences is the error filter trying to protect us from? More to the point: Is there a workaround that allows me to enter that as text instead of an image? I want people to be able to copy-and-paste the content.Solved135Views3likes3CommentsRe: Count how many pairs of dice sum >= 7?
I intend to mark this as "solution", even though it does not seem to work for me. Errata (no strikeout font in this forum. :sigh: ).... Apparently, it is not. Thanks Etizaz24 for following up. I suspect it fails for me because (a) my only access to "Excel 365" (sort of) is Excel for the Web (onedrive.live.com), which might be too dumbed-down; and (b) I don't know enough about the new features to see what I might be doing wrong in applying what seem to be very good instructions. But I suspect it works or can be made to work for someone who knows the "Excel 365" features. More to the point: you are the only one who correctly understood what I was looking for, namely: a formula (or two :wink: ) that returns "the number of pairs where the sum is 7 or more" without any "visible" (*) enumeration. My fault for not articulating my requirements more clearly. I should know better. :sigh: ----- (*) Re: "visible" enumeration I would expect the formula(s) to enumerate the combinations internally. I don't believe we can "count" the qualifying combinations any other way (e.g. a combinatorial or other math expression). BTW, did you test your formula? I did not think COUNTIF accepts an array as the first parameter, notwithstanding the description in the help page. For example, =countif({3,4,5,6,7}, ">=5") is treated as a syntax error in Excel for the Web.97Views1like5CommentsCount how many pairs of dice sum >= 7?
Please help me help someone in another forum. The problem: if we toss a pair of dice (6-sided), what is the probability that their sum is 7 or more? As I demonstrate below, the answer comes down to enumerating and counting the number of pairs with sum >= 7. Then, the probability is (#paired sums >= 7) / #pairs, where #pairs is #sides^2. (The answer is 21/36 = 7/12.) My question is: is there a formula that calculates #paired sums >= 7 without doing the enumeration manually or relying on VBA? I'm guessing that we can use Excel 365 features such as LAMBDA etc. But I know nothing of those features. And less importantly, for my benefit, is there an Excel 2010 formula, without relying on VBA? My "manual" solution:Solved300Views0likes8CommentsRe: Problem with the EDATE function
Crossposted to answers.microsoft.com (click here), where I posted the following response on Jan 4, 2025. EDATE(date, n) returns the same day of the n-th month, or the last day when there is no corresponding date. I believe EDATE follows US law, if not international law. For example, "European Convention on the Calculation of Time-Limits" (click here), Article 4 paragraph 2. And yes, that has the unfortunate consequence that EDATE is not "invertible" (mathematically). That is, EDATE(EDATE(date), 1), -1) is not always "date"; for example, for DATE(2023, 10, 31).85Views0likes0CommentsRe: FV (Future Value) conundrum!
I see that the excel array yields $91,267.30, That is irrefutable. Agree? Not necessarily. This is a serious case of "garbage in, garbage out" (GIGO). You present a formula and a set of parameters, without ever articulating the problem that you want to solve. I cannot dispute the Excel array [....] Ah! Well! Trust no one! Except Excel! All you demonstrated is that FV(3%, -3, 0, -100000) and FV(-3%, 3, 0, -100000) have different results. You also demonstrated that the series C1*(1 - 3%) has the same result as FV(-3%, 3, 0, -100000), when C1=100000 and the formula is copied into C2:C4. Certainly, that is to be expected. You still have no reason to accept one or the other use of the FV function as a solution to your problem (unstated). Or that the FV function should be used at all! What perplexed me was out of the 1/2 dozen or so on line calculators I used, half went one way and the other went the other way I have not been able to duplicate your contradicting results. But then again, you do not properly identify the calculators (complete URLs) and exactly how you used them. ----- So, what problem might you want to solve? Since you mention "future value" and "inflation", I can think 3 possibilities. .1 If something costs $100,000 today, what will it cost in 3 years, assuming 3% inflation? The answer is =FV(3%, 3, 0, -100000), which returns $109,272.70. Presumably, that is not the problem you are trying to solve. .2 What is the "buying power" of $100,000 in 3 years, assuming 3% inflation? IOW, if we put $100,000 into a shoebox today and open it in 3 years, what can we expect to purchase in today's dollars, assuming 3% inflation? And that is the same as asking: what amount in today's dollars will cost $100,000 in 3 years, assuming 3% inflation? Yes, we could write =FV(3%, -3, 0, -100000). But it is more natural to write =PV(3%, 3, 0, -100000). In both cases, the result is $91,514.17. .3 If something costs $100,000 today, what did it cost 3 years ago, assuming 3% inflation? The answer is the same as #2: =PV(3%, 3, 0, -100000). .4 So, what does FV(-3%, 3, 0, -100000) calculate, if it is not the answer to #2 and #3? That would be the answer to: if we invest $100,000 today, what is the value in 3 years, assuming an annual loss of 3%? And that does result in $91,267.30. But an annual loss of 3% is not the same as a "loss" (reduction) in buying power due to 3% inflation, as demonstrated by #2 above.3Views0likes0CommentsRe: Squaring with preceding minus
When I put =-5^2 in a cell, it gives me 25 as a result. [....] Is that the standard Excel behaviour? It is documented intentional behavior. See "Calculation operators and precedence in Excel". It is prudent to use parentheses to ensure the intended interpretation: either -(5^2) or (-5)^2. Or we can use the POWER function: -POWER(5, 2) or POWER(-5, 2). ----- TMI.... Common misunderstanding: Excel's order (unary negation before exponentiation) is "wrong" because it is done differently in math formulas. That is like arguing that the French are "wrong" because they write "black women" as "femmes noires", putting an adjective after the noun instead of before it. ( And the French would argue that English is "wrong". :wink: ) The point is: Excel and math are different languages, and each has its own rules of syntax. The only reason why "minus two to the power of four" (which is ambiguous in English) "obviously" seems to be -16 in math is because math has different syntax, namely: and the rule is: superscript expressions have higher precedence. Arguably, math has the "nice property" that -2^4 would be equivalent to 0 - 2^4, which is not true in Excel. OTOH, in math, we can easily write which is interpreted as 128 (128 = 2^7). Is Excel "wrong" because we must write 2^(4+3) instead of simply 2^4+3, adding parentheses to force a mathematical interpretation? ( Rhetorical. Of course not! ) Bottom line: Each language has its own syntax and rules for interpretation (semantics). It is only a coincidence -- or by purposeful design -- that some languages share some syntax and semantics. That does not make one or the other language "wrong" when there are differences.1View2likes0CommentsRe: XLOOKUP returning #N/A for some values when the values are there
Nabercrombie55 As Patrick2788 wrote, it behooves you to show us the formulas -- and the data as well. Even better (since cell=cell has different results), attach an Excel file that demonstrates the problem. Click on "browse files to attach" at the bottom of the reply applet. That said, I suspect that one or both cells are calculated, and their internal binary values differ infinitesimally. The remedy might be: be sure that both cells are explicitly rounded to the same precision. The difference might be invisible because Excel formats only up to 15 significant digits. And the equal operator ( "=" ) compares values that are rounded to 15 significant digits internally just for the purpose of the comparison. In contrast, lookup and match functions compare the full binary value, which is not limited 15 significant digits, contrary to most online documentation including MSFT's. Example:4.9KViews1like0CommentsCan Excel 365 newspeak simplify the solution?
I'm trying to help someone in another forum. Can we use Excel 365 newspeak to simplify the implementation? Unfortunately, I don't speak Excel 365. I thought I might use this problem to learn by example. And when I say "Excel 365", I mean to include recent versions of Excel that have the same features -- Excel 2019 and later? The following image demonstrates how to calculate the discounted cash flow of increasing cash flows. Formulas: B4: 100000 B5 (copy down): =B4 * (1 + LOOKUP(A5, $F$4:$H$4, $F$5:$H$5)) C4 (copy down): =B4 / (1 + $B$1)^A4 C26: =SUM(C4:C24) C27: =B4 + NPV(B1, B5:B24) Can we eschew the DCF table and calculate sum(DCF) and/or npv(CF) using Excel 365 newspeak? In pseudo-code, the formulas might take the following forms: sum(DCF): =let(y=0, cf0=100000, cf=cf0, cf0 + sum(arrayof(lambda(y=y+1, cf=cf*(1+lookup(y, $F$4:$H$4, $F$5:$H$5)), cf / (1+$B$1)^y)))) npv(CF): =let(y=0, cf0=100000, cf=cf0, cf0 + npv($B$1, arrayof(lambda(y=y+1, cf=cf*(1+lookup(y, $F$4:$H$4, $F$5:$G$5), cf)))) Of course, I need some syntax to limit y=1 to 20. No idea what that might look like. The pseudo-LAMBDA expressions are intended to be recursive.Solved692Views0likes3CommentsRe: SUM PRODUCT - Multiple Critera Failing at Last Arguement
ReginaAnn wrote: "my own formula produces the correct value" Okay. I might have misunderstood the logic, especially since SUMIFS with an array constant in the condition behaves differently in my version of Excel. ----- ReginaAnn wrote: "I am concerned that my formula might be causing a double count" Yes. But I am not interested in trying to make the SUM(SUMIFS(...), SUMIFS(...), ...) formula work -- if that is even possible. However, I overlooked the fact that you had a similar problem in your original formula, as I corrected it. The condition ((HX!P2:P41 = 94001) + (HX!P2:P41 = 91142) + (HX!P2:P41 = 94004)) works as intended (OR) because the terms are mutually-exclusive: for each row, Px can only be one value at a time. However, that is not necessarily true for the condition ((HX!AC2:AC41 = "5500") + (HX!AD2:AD41 = "5500") + (HX!AE2:AE41 = "5500") + (HX!AF2:AF41 = "5500")), unless you want to rely on the assumption that the user (you?) will ensure that "5500" is in at most only one of those columns at a time. If only for "defensive programming", it would be better to write ((HX!AC2:AC41 = "5500") + (HX!AD2:AD41 = "5500") + (HX!AE2:AE41 = "5500") + (HX!AF2:AF41 = "5500") > 0) ----- ReginaAnn wrote: " I am still encountering zeros with both your formula and Sergei's formula" The primary problem is: the value in P31, P35 and P41 is not one of 94001, 91142 or 94004, as P32 is. The second problem in my version is: the values in P31, P32, P35 and P41 are text, not numeric. (Looks can be deceiving, and the format of the cell does not matter. Use formulas of the form =ISTEXT(P31) to confirm.) Both problems can be fixed by replacing ((HX!P2:P41 = 94001) + (HX!P2:P41 = 91142) + (HX!P2:P41 = 94004)) with (HX!P2:P41 = {"94001","91142","94004","90327","99327"}) With those changes, my SUMPRODUCT formula now returns the expected result in the sample data. =SUMPRODUCT((HX!AB2:AB41 = 18) * (HX!Q2:Q41 = "0735") * (HX!P2:P41 = {"94001","91142","94004","90327","99327"}) * ((HX!AC2:AC41 = "5500") + (HX!AD2:AD41 = "5500") + (HX!AE2:AE41 = "5500") + (HX!AF2:AF41 = "5500") > 0) * HX!Y2:Y41) ----- Alternatively, in addition to adding tests for P2:P41=90327 and P2:P41=99327 (or changing the values in P31, P35 and P41), you could employ one of Sergei's fixes, namely --HX!P2:P41 instead of simply HX!P2:P41. The double negation converts "numeric text" into bona fide numbers. And arguably, that might be a good idea if only for "defensive programming". To that end, I note that whereas 18 in column AB is numeric, all of the other values in column AB are text. So, in general, the first condition should be (--HX!AB2:AB41 = 18). Alternatively, change numeric 18 to text, and write (HX!AB2:AB41 = "18"). But note that "* --HX!Y2:Y41" at the end would be unnecessary. Any arithmetic operation (e.g. multiplication) is sufficient to convert "numeric text". So leave "* HX!Y2:Y41" as-is.931Views0likes0CommentsRe: SUM PRODUCT - Multiple Critera Failing at Last Arguement
ReginaAnn 1. With your version of my formula, the #VALUE error is because the ranges start with row 1 instead of row 2. Since row 1 contains column titles, "* HX!BC1" at the end produces an error. Change all ranges to 2:63590, as they were originally. ERRATA.... I see that you used the range 1:63590 orginally, and I copied the error. Sergei corrected the range to 2:63590, and I had not seen his posting while I was writing mine. 2. Your formulas return zero because the sample data is (again) not in the columns referenced by the formulas. For example, DV2:DV63590 is empty. 3. I still do not see 18 in any column, much less a highlighted row. So none of the conditions DV2:DV63590=18 would be TRUE, even if we assume one of the bogus columns should be column DV. ERRATA.... I see now that E41 does indeed have the number 18 (and it is numeric, not text). I don't know how I missed that when I used ctrl+f (Find). No matter! If I assume that column E should be DV, HX!Q2:Q63590 = "0735" is FALSE for all rows because column Q is now empty. Bottom line: Provide an Excel file with all of the data in the correct locations. 4. FYI, there is no need to array-enter the SUMPRODUCT formula. OTOH, I'm not sure you did. That might simply be the way the formula in your version of Excel was interpreted in my older version of Excel (2010).1KViews0likes0CommentsRe: SUM PRODUCT - Multiple Critera Failing at Last Arguement
ReginaAnn As Excel shows us (in my version), you have an extra right-parenthesis at the end. Also, the use of SUM and SUMPRODUCT is redundant. Choose one of the following: =SUM((HX!DV1:DV63590 = 18) * (HX!Q1:Q63590 = "0735") * ((HX!P1:P63590 = 94001) + (HX!P1:P63590 = 91142) + (HX!P1:P63590 = 94004)) * ((HX!EN1:EN63590 = "5500") + (HX!EO1:EO63590 = "5500") + (HX!EP1:EP63590 = "5500") + (HX!EQ1:EQ63590 = "5500")) * HX!BC1:BC63590) or =SUMPRODUCT((HX!DV1:DV63590 = 18) * (HX!Q1:Q63590 = "0735") * ((HX!P1:P63590 = 94001) + (HX!P1:P63590 = 91142) + (HX!P1:P63590 = 94004)) * ((HX!EN1:EN63590 = "5500") + (HX!EO1:EO63590 = "5500") + (HX!EP1:EP63590 = "5500") + (HX!EQ1:EQ63590 = "5500")) * HX!BC1:BC63590) The SUM version works in versions of Excel that are dynamic-array aware. The SUMPRODUCT version works in all versions of Excel. I don't know why you provided the Excel data file. If you want help with debugging your logic, you need to provide a file with data in the appropriate columns. And you should highlight rows where you expect the logic to be true. I don't see any column with 18 in the highlighted rows in your file.1.1KViews0likes10CommentsRe: Calculation error
EExmannhotmailcom Regarding your response: TL;DR. And since you repeatedly say "I consider this case closed", there really is no reason for me to help you further. But I cannot resist clarifying some things.... ----- EExmannhotmailcom wrote: "Now you state that I should use a different approach for calculating the m3/hour. You suggest I should use a calculated weighted approach. But I would not know what I should weight it against" I showed you the formulas in my previous response. The point is.... You calculate the m3/uur for each temperature (13 to 25) by calculating Totaal divided by Uren. So likewise, we should calculate the overall m3/uur by calculating the sum of Totaal for all temperatures divided by the sum of Uren for all temperatures. As I wrote previous: SUM(C10:O10) / SUM(C11:O11). You should be able to see that that is not the same as the sum of the weekly m3/uur for all temperatures, which you calculate under Dag Totaal. But the overall m3/uur, as I calculate it, is the same as the weighted average of the weekly m3/uur ratios. As I wrote previously: SUMPRODUCT(C12:O12, C11:O11) / SUM(C11:O11). The numerator is effectively C12:C11 + D12*D11 + ... + O12*O11, where C12 is m3/uur for temperature 13 and C11 is Uren for temperature 13. Thus, the Uren for each temperature are the weighting factors. Since m3/uur is calculated by Totaal / Uren for temperature 13, (Totaal / Uren) * Uren = Totaal (C10) for temperature 13. Thus, the SUMPRODUCT is the same as SUM(C10:O10). So, the SUMPRODUCT/SUM formula is the same as the SUM/SUM formula. ----- EExmannhotmailcom wrote: "For reading I normally format the figures to one or two decimals and understand that actually more decimals are used in the calculation." But when you ask a question about the correctness of the calculation, obviously we need to know the actual values in the calculation, as well as the actual formulas that derived the values. ----- EExmannhotmailcom wrote: "Although Microsoft says it will work with 15 decimals it can happen that more or less decimals [are involved]" Yes. That is a constant source of confusion for many users. For some additional detail, but hopefully not TMI, see my first response to another recent question (click here). ----- EExmannhotmailcom wrote: "I have extracted portions of the excel sheet for you to look at. I consider this case closed, thank you very much for your time and input. [....] I have a file ready to demonstrate the calculation error, don't know how to attach the file" Since you "consider this case closed", I have no interest in the file. But for your edification, you can attach files by clicking "browse files to attach" near the Post button at the bottom of the applet. If you don't see that (I don't know why not; but other users say that, too), share a "view only" link to the file. Upload the file to a file-sharing website like box.net/files, dropbox.com, onedrive.live.com, etc. (But not Google Sheets.) ----- EExmannhotmailcom wrote: "If you would like I do have an other issue" What I "would like" has nothing to do with it. But if you have another problem that you want help with, start a new thread for each separate problem. Someone might help you.1.8KViews0likes0CommentsRe: I have an Issue in calculate depreciation formulas
alymaghrabi2 Since your use of AMORLINC returns numeric values, obviously the problem is not related to the parameter separator (semicolon vs comma). Using the wrong parameter separator would result in a syntax error, not unexpected numeric results. ----- Unfortunately, the MSFT Excel support page (click here) for AMORLINC is light in details. And that is an understatement. :sigh: For more details, I suggest that we refer to the LibreOffice Calc documentation page (click here). Keep in mind that there might be differences between Calc and Excel. But to the point, the Calc documentation has some useful insights. And one point, in particular, might explain the "issue" that you have. First, I note that you are using day count basis 0, which treats the year as 360 days and each month as 30 days. Elsewhere, Excel documentation explains that for day count basis 0, month day 31 is treated the same as day 30, as we should expect. Thus, in the two examples whose results you say are wrong, the purchase date is effectively the same as the first period end-date, since DATE(2023,12,31) is treated the same as DATE(2023,12,30). Second, note this excerpt from the Calc documentation page: ``Calc and Excel behave differently when the date of purchase coincides with the end of an accounting period. Calc regards the initial period 0 as of zero length, and thus returns zero depreciation. Excel regards the initial period 0 as the first full period.`` Consequently, for your example, Excel should (intends to) return 25% of the cost (according to the Calc documentation page). And it does. I am not familiar with the French Accounting Standards. So, I cannot offer an opinion about whether the Excel behavior is correct or not. (Okay, I can't resist. :wink: Conceptually, I agree with Calc, although the devil is in details that I'm not taking the time to verify. But again, I don't know if the FAS says otherwise. :surprise: ) If you can document that the Excel behavior is contrary to the FAS, you might consider using the Office Feedback feature to complain to MSFT. But IMHO, that would be a waste of time. Even if MSFT concedes the error, it is not likely to fix it because of concerns for backward compatibility.422Views0likes0CommentsRe: Calculation error
EExmannhotmailcom wrote: "your explanation of digits and decimale is sufficient to me. [.... So] you can close the case" But you have some much bigger mathematical problems and some dubious decimal presentation issues that have nothing to do with the binary arithmetic issue that Hans and I addressed. (The following assumes that the upper-left corner of the first table is A1.) ----- 1. Your calculation of "total" m3/hour is incorrect. Mathematically, it should be the weighted average of the daily m3/hour amounts, not merely their sum. Ostensibly: =SUMPRODUCT(C12:O12, C11:O11) / SUM(C11:O11) Alternatively: =SUM(C10:O10) / SUM(C11:O11) The two formulas return the same result (subject to binary arithmetic anomalies), namely 0.304761904761905, if your actual daily m3/hour values in C12:O12 are their exact daily ratios, for example G10/G11. (The SUMPRODUCT result is slightly different with the rounded values that you posted.) ----- 2. Apparently, the "daily" totals in R3:R9 and the weekly totals in C10:O10 are based on actual values with more decimal precision than the values that you posted in C3:O9. For example, based on the posted values in C3:O9, =SUM(C3:O3) is 4.40 instead of 4.44 that you posted in R3. And =SUM(I3:I9) is 10.00 instead of 10.10 that you posted in I10. Consequently, we cannot duplicate the visable difference (0.000000000000007) between your total in R10, presumably =SUM(C10:O10), and the sum of the "daily" totals, presumably =SUM(R3:R9). (In the future, please post your formulas as well as their results, at least.) Nevertheless, there is an invisible difference between those sums based on the posted values. Both sums appear to be 50.9000000000000. But with formulas like =SUM(C3:O3) in V3:V9 and =SUM(C3:C9) in C14:O14, the results of =SUM(V3:V9) in V10 and =SUM(C14:O14) in P14 actually differ by about 1.42E-14 (**). The reason is not so much because the order of operations is different, but because the values are different. Nevertheless, for either reason, the explanation is the same: the internal binary representation of most decimal fractions is not exact, and the binary approximation can vary depending on the magnitude of the value. Consequently, the binary arithmetic result can differ infinitesimally from the expected decimal result. For example, IF(10.1 - 10 = 0.1, TRUE) returns FALSE(!) because the binary approximation of 0.1 in 10.1 differs from the binary approximation of 0.1 by itself. In P14, the sum is 11.00 + 7.60 + 10.00 + 6.00 + 16.30. The 17-digit (*) approximation is 50.900000000000006. In V10, the sum is 4.40 + 7.40 + 6.40 + 8.60 + 7.40 + 7.90 + 8.80. The 17-digit approximation is 50.899999999999991. Aside.... The following is an example where the order of operations makes a difference (compare with P14): 11.00 + 10.00 + 6.00 + 16.30 + 7.60 results in the 17-digit approximation 50.899999999999999. (By coincidence, that is also the binary approximation of the constant 50.9.) ----- TMI.... (*) Excel does not format the 17-digit approximation except in XML files, like the internal represenation of xlsx and xlsm files, and when transferring values between some applications, like MS Access. 17 significant digits is necessary and sufficient to replicate the internal binary representation with no loss of binary precision. (**) The difference of 1.42E-14 is invisible if we calculate the formula =P14-V10 (might return exactly zero artificially) or the conditional expression P14=V10 (returns TRUE). That is due to dubious design "features" that are unique to Excel. In contrast, =(P14-V10) with redundant parentheses does display 1.42E-14 when formatted as General or Scientific. And both ISNUMBER(MATCH(P14, V10, 0)) and P14 - V10 = 0 return FALSE because of the actual infinitesimal difference.2.1KViews0likes3CommentsRe: Modify formula to return false values too
packie I think you are saying that column Q contains the numeric values 1 and 0, which only appear to be "yes" and "no" due to cell formatting. (But that does not matter, in the final analysis.) And you want to the formula to return the value in column Q, but return the null string if the Q cell is empty, as well if the VLOOKUP fails. The problem is: as you used it, VLOOKUP returns zero if the Q cell is empty. One solution for all versions of Excel (2010 and later): =IFERROR(IF(VLOOKUP(G1528, $G$5:$Q$1494, 11, 0)) = "", "", VLOOKUP(G1528, $G$5:$Q$1494, 11, 0)), "") Your mistake was testing VLOOKUP(...)=0 instead of VLOOKUP(...)="". VLOOKUP interprets an empty cell differently, depending on context. If your version of Excel supports the LET function, a better solution is: =LET(x, VLOOKUP(G1528, $G$5:$Q$1494, 11, 0), IFERROR(IF(x = "", "", x), ""))845Views0likes1Comment
Recent Blog Articles
No content to show