Donate to Remove ads

Got a credit card? use our Credit Card & Finance Calculators

Thanks to Rhyd6,eyeball08,Wondergirly,bofh,johnstevens77, for Donating to support the site

Another Excel needed

Seek assistance with all types of tech. - computer, phone, TV, heating controls etc.
Novoiceleft
Lemon Pip
Posts: 98
Joined: March 15th, 2017, 8:14 pm
Has thanked: 37 times
Been thanked: 10 times

Another Excel needed

#208074

Postby Novoiceleft » March 16th, 2019, 1:06 pm

Thanks for the help earlier. I managed to do it ... !!

Now I have another similar one

I have 4 columns A, B, C, D which can contain only "1" or "0"

I want a result in Column E as follows

Column E = "1" if either A or B = "1". But, that is overridden if either columns C or D = "1" - in which case Column E = "0".

Many thanks !!

NoVoice

EssDeeAitch
Lemon Slice
Posts: 655
Joined: August 31st, 2018, 9:08 pm
Has thanked: 268 times
Been thanked: 251 times

Re: Another Excel needed

#208078

Postby EssDeeAitch » March 16th, 2019, 1:39 pm

Novoiceleft wrote:Thanks for the help earlier. I managed to do it ... !!

Now I have another similar one

I have 4 columns A, B, C, D which can contain only "1" or "0"

I want a result in Column E as follows

Column E = "1" if either A or B = "1". But, that is overridden if either columns C or D = "1" - in which case Column E = "0".

Many thanks !!

NoVoice


Try this

=IF(SUM(C3:D3)>=1,0,1)

AleisterCrowley
Lemon Half
Posts: 6385
Joined: November 4th, 2016, 11:35 am
Has thanked: 1882 times
Been thanked: 2026 times

Re: Another Excel needed

#208079

Postby AleisterCrowley » March 16th, 2019, 1:41 pm

wouldn't work for all zeroes?

I don't like big nested statements
I tend to concatenate the columns and use a table with vlookup
Easier if you use y and n rather than 1 and 0
So you may get yyny, yyyn etc

EssDeeAitch
Lemon Slice
Posts: 655
Joined: August 31st, 2018, 9:08 pm
Has thanked: 268 times
Been thanked: 251 times

Re: Another Excel needed

#208081

Postby EssDeeAitch » March 16th, 2019, 1:51 pm

AleisterCrowley wrote:wouldn't work for all zeroes?

I don't like big nested statements
I tend to concatenate the columns and use a table with vlookup
Easier if you use y and n rather than 1 and 0
So you may get yyny, yyyn etc


No, it won't work if all values are zero and I should have stated that. I assumed (which may be wrong) that there would be a 1 value somewhere.

Novoiceleft
Lemon Pip
Posts: 98
Joined: March 15th, 2017, 8:14 pm
Has thanked: 37 times
Been thanked: 10 times

Re: Another Excel needed

#208082

Postby Novoiceleft » March 16th, 2019, 1:58 pm

Thanks EssDeeAitch but I don't think that, on its own, takes account of the first condition.... I will try to add it to something that deals with the first bit.

Aleister - I agree - but this is actually a dry run for a Sharepoint formula I need and Sharepoint does not have VLOOKUP !

NoVoice

scrumpyjack
Lemon Quarter
Posts: 4858
Joined: November 4th, 2016, 10:15 am
Has thanked: 614 times
Been thanked: 2705 times

Re: Another Excel needed

#208085

Postby scrumpyjack » March 16th, 2019, 1:58 pm

=IF(SUM(C1:D1)>0,0,IF(SUM(A1,B1)>0,1,0))

should do it

Novoiceleft
Lemon Pip
Posts: 98
Joined: March 15th, 2017, 8:14 pm
Has thanked: 37 times
Been thanked: 10 times

Re: Another Excel needed

#208089

Postby Novoiceleft » March 16th, 2019, 2:39 pm

It does indeed...Thank you so much !! :)

NoVoice

modellingman
Lemon Slice
Posts: 621
Joined: November 4th, 2016, 3:46 pm
Has thanked: 606 times
Been thanked: 368 times

Re: Another Excel needed

#208594

Postby modellingman » March 19th, 2019, 12:09 pm

Without IF...

=(1-(1-A1)*(1-B1))*(1-C1)*(1-D1)


Return to “Technology - Computers, TV, Phones etc.”

Who is online

Users browsing this forum: No registered users and 28 guests