Long formula with IF statement -- can't figure out how to add another item.

daytona12345

New Member
Joined
Aug 31, 2021
Messages
20
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Here is my formula:

=IF(I5$C12,C11 ) / (C7 * 2^32/600/1000000000000) * C4 * C6 * 365


What I would like to do is add a multiplication by a percentage in the red portion above:

($C$7 * (1+A1) 2^32/600/1000000000000)

cell A1 is a percentage that I would be able to change (it could be 0% and the result stays as if the conditional isn't there, or I could change it to be 1%, 2% etc.)

I know I have a problem with the way I wrote this above due to the parenthesis -- but I've tried to write it several different ways and just can't figure out how to get that part added !
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Here is my formula:

=IF(I5$C12,C11 ) / (C7 * 2^32/600/1000000000000) * C4 * C6 * 365


What I would like to do is add a multiplication by a percentage in the red portion above:

($C$7 * (1+A1) 2^32/600/1000000000000)

cell A1 is a percentage that I would be able to change (it could be 0% and the result stays as if the conditional isn't there, or I could change it to be 1%, 2% etc.)

I know I have a problem with the way I wrote this above due to the parenthesis -- but I've tried to write it several different ways and just can't figure out how to get that part added !
Try

Excel Formula:
((($C$7 * ((1+A1)*2))^32)/600/1000000000000)

Using Brackets will define the order of calculation you want - so please check on that while using the above part in place of red part you highlighted.
 
Upvote 0
Try

Excel Formula:
((($C$7 * ((1+A1)*2))^32)/600/1000000000000)

Using Brackets will define the order of calculation you want - so please check on that while using the above part in place of red part you highlighted.
If I try like this it doesn't work

=IF($I$5,$C$12,$C$11) / ((($C$7 * ((1+A1)*2))^32)/600/1000000000000) *$C$4 * $C$6 * 365

Let me upload a copy of the sheet because without that, it's probably much more difficult for anyone to help!
 
Upvote 0
=IF(I5$C12,C11 ) / (C7 * 2^32/600/1000000000000) * C4 * C6 * 365 is working and is providing the large Dollars Number.

I want to add a % increase specifically to data that is in cell C7

=IF($I$5,$C$12,$C$11) / ((($C$7 * ((1+A1)*2))^32)/600/1000000000000) *$C$4 * $C$6 * 365 did not work for me

Book2
ABCDEFGHI
1
2
3
4Number 1909ItemRatekWhCheck?
5Number 245511263.276TRUE
6Number 32400021003.4
7Number 428,174,668,481,2893953.25
8
9
10kWh Price$0.09Dollars
11RATE36288$1.8M
12CHECK?45360
13% Change 1%
14% Change 23%#REF!
15ItemQuantity
1612882472025461.626225.44827012.2114427822.57778
17
18
Sheet1
 
Upvote 0
Can't sense anything from uploaded data. Moreover unable to understand what do you want to do with IF - what are you try to tell system with IF Function
 
Upvote 0
Can't sense anything from uploaded data. Moreover unable to understand what do you want to do with IF - what are you try to tell system with IF Function
So the basic gist of the formula is:
B16 is a Vlookup tied to the table in E, F, G

Pending what item you select (1,2,3) it will change how the rest of the calculation works.

I've copied this from google sheets so the "Check?" was actually a checkbox, so if it is False, the calculations are changed compared to if it is True.


The IF statement is essentially taking the items in 1,2,3 and when the box is ticked...it will calculate as if the machines are overclocked, if it is not checked, it will calculate as normal.


So "Rate" = not overclocked or what the formula is calculating based on if the item is FALE
Check? = this number is the overclocked number.
 
Upvote 0
This may do the trick:

=IF($I$5,$C$12,$C$11) / ($C$7*(1+C13) * 2^32/600/1000000000000) *$C$4 * $C$6 * 365 I will check !
 
Upvote 0
Did that work for you? With the IF statement, wouldn't you want it to state;
Excel Formula:
=IF($I$5=TRUE,$C$12,$C$11) / ($C$7*(1+C13) * 2^32/600/1000000000000) *$C$4 * $C$6 * 365

If I5 is checked (True), then C12 is displayed as the value else C11.
 
Upvote 0
Solution
Did that work for you? With the IF statement, wouldn't you want it to state;
Excel Formula:
=IF($I$5=TRUE,$C$12,$C$11) / ($C$7*(1+C13) * 2^32/600/1000000000000) *$C$4 * $C$6 * 365

If I5 is checked (True), then C12 is displayed as the value else C11.
this works beautifully, thank you !
 
Upvote 0

Forum statistics

Threads
1,215,692
Messages
6,126,227
Members
449,303
Latest member
grantrob

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