Coding a comparison of multiple cells to one

Av8

New Member
Joined
Feb 1, 2021
Messages
6
Office Version
  1. 2016
Platform
  1. MacOS
Hi everyone,

I’ve searched the forum but unable to find an answer so apologies if this has been answered before.

Is it possible to code an IF function where I compare multiple cells in a row to see if any are a certain percentage above one cell, and if so output TRUE?

For example I have cells B to Z with numbers in and if any of those cells are 50% greater than cell A, output equals TRUE.

If this isn’t possible, are there any other ways I could perform a different function to get the same result? I’d like to hard code ideally to copy the function to multiple rows.

Many thanks in advance
 

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)

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
4,684
Office Version
  1. 365
Platform
  1. MacOS
i would think perhaps using a MAX() across B to Z
=MAX(B2:Z2)
then test that MAX to see if above 50% greater than A
the value in A2 to test - If reading correctly - 50% higher than A would be A2*1.5
So
Max(B2:Z2)>A2*1.5
AND copy down - will show each row

If i have read the requirement correctly
OR is this the whole range ? compared
 

Av8

New Member
Joined
Feb 1, 2021
Messages
6
Office Version
  1. 2016
Platform
  1. MacOS
Thanks for your quick reply etaf. Your suggestion looks like a great solution. I’ll test it and report back.
 

Av8

New Member
Joined
Feb 1, 2021
Messages
6
Office Version
  1. 2016
Platform
  1. MacOS
Thanks for your quick reply etaf. Your suggestion looks like a great solution. I’ll test it and report back.
Thanks etaf, worked a treat
 

etaf

Well-known Member
Joined
Oct 24, 2012
Messages
4,684
Office Version
  1. 365
Platform
  1. MacOS
you are welcome
 

Watch MrExcel Video

Forum statistics

Threads
1,130,381
Messages
5,641,805
Members
417,239
Latest member
AymericA

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
Top