If Formula - Error when I extend Range

tlc53

Active Member
Joined
Jul 26, 2018
Messages
399
Hi there,

I have a basic formula =IF(D181=B268,B181,)
This correctly returns "Dairy Foods"
However, when I try to extend the range =IF(D181:D182=B268,B181:B182,)
It returns #VALUE !, instead of "Dairy Foods".

Does anyone know why it's going that?

Thank you!
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
D181:D182 This is not a correct way.
What do you need to do?
You can explain it with real examples, what do you have in the cells and what do you expect from the result?
 
Upvote 0
Column D has a Dynamic list which the drop down options are No.1 through to No.10 (non repeating)

I have a section below for No.1
To feed the information through to here, I want an if statement which says if a cell in Column D has No.1, return the description of Column B.

In this example, No.1 has been selected under the description "Dairy Foods". If I just refer to singular cells it calculates correctly but I need it to look at all of Column D and return the corresponding description of Column B.

The full if statement I want but doesn't seem to work is, =IF(D151:D236=B239,B151:B236,"")
This would return "Dairy Foods"
(slight change in cell references from original posting as I'm currently working on the spreadsheet and deleting rows etc).
 
Last edited:
Upvote 0
Try:

=IFERROR(OFFSET(B151,MATCH(B239,D151:D236,0)-1,0),"There is no coincidence")
 
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,428
Members
449,083
Latest member
Ava19

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