IF calculation problem

JRRT

New Member
Joined
Mar 19, 2002
Messages
21
I am new to excel and am trying to us the IF function to do a calculation.
The calculation will be done in D3 What I want to do is if the letter "I" is typed in B3 it should divide the value that is entered in C3 by 2.5. Or if the letter "D" is typed in B3 it should divide the value that is entered in C3 by 1.5. Is anything like this possible?
 
Hi Dave and JRRT,

Dave - nice one.

Just a warning, be careful here. Make sure your result is exactly as you want it.

If the SUMPRODUCT returns zero, your result will be the value in B21.

Suppose, however, that B21 is a value greater than any individual item in the list. The result might be negative if the SUMPRODUCT total returns a value greater than B21.

I read the OP's intent to be:
1. Identify (D,E) series that match criteria.
2. Subtract each result from B21.

Obviously, I may have misread the question, but these two formulae (I posted to the other thread) both work, yet can return vastly different results.

BTW, I did not get the original IF statement (array entered) to return the correct results.

Bye,
Jay
 
Upvote 0

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hello Dave, JRR, and Jay:
since we are talking about different approaches, and Dave's progressively smaller and smarter solutions, how about the following array formula:

{=B21-SUM(IF(E3:E17=E3,D3:D17))}


Regards!
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,042
Members
449,063
Latest member
ak94

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top