Sep 11 2023 02:04 PM
I am trying to make a formula that will allow the result to be based on cell input. Example, the formula will check if one of these terms is filled in "INTEREST PAYMENT" OR "REWARD". Based on those terms, the formula should switch between these 2 options | =(IF(ISNUMBER(SEARCH("INTEREST PAYMENT",B157)),(SUM(K157+O157+Q157)),(0))) | or | =(IF(ISNUMBER(SEARCH("REWARD",B157)),(SUM(M157+O157+Q157)),(0)))
If you can see on the next photo below, in column "credit amount" there should be a formula that will allow the 2 formulas I made to be used based on what is filled in column "Description".
Formula 1 works like this:
=(IF(ISNUMBER(SEARCH("INTEREST PAYMENT",B157)),(SUM(K157+O157+Q157)),(0)))
That means: If in Description (B157) IS FILLED INTEREST PAYMENT, it will sum K157, O157, Q157.
Formula 2 works the same as 1 but changes based on the argument/term:
=(IF(ISNUMBER(SEARCH("REWARD",B157)),(SUM(M157+O157+Q157)),(0)))
That means: If in Description (B157) IS FILLED REWARD, it will sum M157, O157, Q157.
As I can finally explain, these terms "INTEREST PAYMENT" or "REWARD" will decide which of the following formulas 1 or 2 should be used to result in the column "CREDIT AMOUNT"
Sep 11 2023 02:10 PM
SolutionIt sounds like you want to create a formula in Excel that checks the value in the "Description" column and then uses different calculations based on whether the description contains "INTEREST PAYMENT" or "REWARD."
You can achieve this by using an IF function in combination with SEARCH. Here is the formula:
=IF(ISNUMBER(SEARCH("INTEREST PAYMENT", B157)), SUM(K157, O157, Q157), IF(ISNUMBER(SEARCH("REWARD", B157)), SUM(M157, O157, Q157), 0))
Let me break down how this formula works:
So, this formula checks for the presence of "INTEREST PAYMENT" and "REWARD" in cell B157 and calculates the sum accordingly. You can copy this formula down to apply it to other rows in the "CREDIT AMOUNT" column based on the values in the "Description" column.
The text, steps and functions were created with the help of AI.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark them as helpful and like it!
This will help all forum participants.
Sep 11 2023 03:41 PM
Sep 11 2023 02:10 PM
SolutionIt sounds like you want to create a formula in Excel that checks the value in the "Description" column and then uses different calculations based on whether the description contains "INTEREST PAYMENT" or "REWARD."
You can achieve this by using an IF function in combination with SEARCH. Here is the formula:
=IF(ISNUMBER(SEARCH("INTEREST PAYMENT", B157)), SUM(K157, O157, Q157), IF(ISNUMBER(SEARCH("REWARD", B157)), SUM(M157, O157, Q157), 0))
Let me break down how this formula works:
So, this formula checks for the presence of "INTEREST PAYMENT" and "REWARD" in cell B157 and calculates the sum accordingly. You can copy this formula down to apply it to other rows in the "CREDIT AMOUNT" column based on the values in the "Description" column.
The text, steps and functions were created with the help of AI.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark them as helpful and like it!
This will help all forum participants.