If Statement calculation

himatvarsani

New Member
Joined
Apr 23, 2020
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
I am creating a deal analyser the measures the council requirements for housing and the number of units offered for planning permission based on council requirement (I hope this makes sense). For example, 1 bed 33%, 2 bed 24%, 3 bed 42% - 1 bed I can build 3, 2 bed I can build 2, 3 bed I can build 3 etc....

Also I am trying to create an if statement that if row B11 is commercial do not add to e5 from e11, else deduct D5 from e11, basically, e5 will start with d5 figure and get deducted from e row until close to or equal 0.

I have attached the spreadsheet
Schedule of Accomodation.PNG
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
=SUMIF(B11:B20,"<>Commercial",E11:E20) to get non-commercial sqft.

=sum(B11:B20)-SUMIF(B11:B20,"<>Commercial",E11:E20) to get sqft - all non-commercial sqft
 
Upvote 0
Hi Richh,

Thank you so much for your response. I had tried your formula, I'm I missing something as it didn't work.

Also From the council requirement (%) how can I calculate the number of units, I don't know if this makes sense.

Thank you
Himat
 
Upvote 0
=SUMIF(B11:B20,"<>Commercial",E11:E20) to get non-commercial sqft.

=sum(B11:B20)-SUMIF(B11:B20,"<>Commercial",E11:E20) to get sqft - all non-commercial sqft

Hi Richh,

I have got the formula nearly working, see image below

Formula: =SUM(D5)-SUMIFS(E11:E20,C11:C20,{"Private"},B11:B20,{"Studio Flat","1 Bed Flat"})

When I select Studio Flat the calculation works, but as soon as I select 1 Bed Flat this does work, what have I done wrong with the formula. Other than this, all with the spreadsheet is working correctly.

Thank you
Himat
 

Attachments

  • Schedule of Accomodation.PNG
    Schedule of Accomodation.PNG
    30.8 KB · Views: 2
Upvote 0

Forum statistics

Threads
1,214,584
Messages
6,120,385
Members
448,956
Latest member
JPav

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