# Find value in any of 3 different columns and return value of

#### brendakc

##### New Member
I need a formula to to look a 3 different columns and if any contain the number 6, return the value of a different cell. For example:

If F4 or G4 or H4 contain the number 6, return the content in A4.

Thanks!
This message was edited by brendakc on 2002-09-02 19:40

### Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
welcome to the board!

try this -

=IF(OR(F4:H4=6),A4,"No 6")

which needs to be array entered (i.e. with control + shift + enter, not just enter. If done right, excel will add curly brackets round the formula).

It's just shorthand for:

=IF(OR(F4=6,G4=6,H4=6),A4,"No 6")

Gee! That was fast! And it is exactly what I needed, except that I forgot one thing.

Using the same conditions, return the content of A4 only if R4>0

Thanks!

On 2002-09-02 20:04, brendakc wrote:
Gee! That was fast! And it is exactly what I needed, except that I forgot one thing.

Using the same conditions, return the content of A4 only if R4>0

Thanks!

=IF(and((OR(F4=6,G4=6,H4=6)),R4>0),A4,"No 6")

Replies
4
Views
209
Replies
6
Views
241
Replies
19
Views
628
Replies
3
Views
120
Replies
3
Views
334

1,217,682
Messages
6,137,959
Members
450,101
Latest member
Mrupe86

### 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?

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