As IF, I just can't get it right. If need to Add and Divide in the Formula

cwag1

New Member
Joined
Jul 11, 2016
Messages
10
Office Version
  1. 365
Platform
  1. Windows
I'm trying to design a spread sheet I will also uses as a display. I am wanting to add the row, but if the cell under if says "Half" I want it to divide the number above by 2 then add it. So in my picture B4 is 1 but since B5 says Half I want it to add as .5 will C4 still adds as 2 in U4. So U4 should read 2.5 instead of 1.5. Then something weird I have never seen are all these 3 appearing in Columns V through AL. Thank you in advance for the help.
 

Attachments

  • IF.JPG
    IF.JPG
    152.7 KB · Views: 15

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Then something weird I have never seen are all these 3 appearing in Columns V through AL.
That is because you are using an array formula & it's Spilling across the row.
 
Upvote 0
How about
Excel Formula:
=SUM(B4:S4/(1+(B5:S5="half")))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.

Thanks also for updating your profile. (y)
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,151
Members
453,021
Latest member
Justyna P

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