ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Help with a formula (https://www.excelbanter.com/excel-programming/324973-help-formula.html)

KimberlyC

Help with a formula
 
HI

I have codes in one section of my worksheet (like 56743) in cells A10:A30
with totals (numbers) in cells B10:B30
Then, I have another section of the worksheet that might have the same codes
and might not in cells A40:A60 with totals in cells B40:B60. The totals are
calculated different between the two sets ...thus they are separated.

My Question is:
Is there a formula I can enter, for example in cell C40, that will only
enter the total from cell B40 if the code (or number entered) in cell A40 is
NOT listed in cells A10:A30?

Any help is greatly appreciated..
Thanks in advance,
Kimberly




Nate Oliver[_3_]

Help with a formula
 
Hi Kimberly,

Try: =IF(ISNUMBER(MATCH(A40,A10:A29,FALSE)),0,B40)

Regards,
Nate Oliver

KimberlyC

Help with a formula
 
Thanks.. that worked!
"Nate Oliver" wrote in message
...
Hi Kimberly,

Try: =IF(ISNUMBER(MATCH(A40,A10:A29,FALSE)),0,B40)

Regards,
Nate Oliver




Nate Oliver[_3_]

Help with a formula
 
You're welcome.

Hope you caught that 29 was a typo, it should have been 30.

Regards,
Nate Oliver


All times are GMT +1. The time now is 10:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com