Offset formula error

ddibs

New Member
Joined
Apr 6, 2018
Messages
5
<style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'; color: #000000 } span.s1 {color: #006107 } span.s2 {color: #ab30d6 } span.s3 {color: #0057d6 } span.s4 {color: #a54a29 } span.s5 {color: #33af4a } </style>=OFFSET(CELL("address",INDEX($V$2:$V$76,MATCH(MID(O8,1,1),$V$2:$V$76,0)+1)),0,1)

This is my formula and I get an error saying my formula contains an error can anyone tell me that that might be.

Thanks!
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
I have this formula that says it has an error
=OFFSET(CELL("address",INDEX($V$2:$V$76,MATCH(MID(O8,1,1),$V$2:$V$76,0)+1)),0,1)

<colgroup><col></colgroup><tbody>
</tbody>

but when I take off the OFFSET it works just fine.

This CELL("address",INDEX($V$2:$V$76,MATCH(MID(O8,1,1),$V$2:$V$76,0)+1))

gives something like $A$7 so it seems to me that this should be accepted by the OFFSET formula for its first parameter.


What can I do to fix this?
 
Upvote 0
Re: can the OFFSET reference be a formula?

<style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'; color: #000000 } span.s1 {color: #006107 } span.s2 {color: #ab30d6 } span.s3 {color: #0057d6 } span.s4 {color: #a54a29 } span.s5 {color: #33af4a } </style>=OFFSET(CELL("address",INDEX($V$2:$V$76,MATCH(MID(O8,1,1),$V$2:$V$76,0)+1)),0,1)

This is my formula and I get an error saying my formula contains an error can anyone tell me that that might be.

Thanks!

Are you looking for this?

=OFFSET(INDEX($V$2:$V$76,MATCH(MID(O8,1,1),$V$2:$V$76,0)+1),0,0,1)

If not, care to elaborate?
 
Upvote 0
What are you hoping to return? CELL("address"..) will return a text string with the address of the cell. Do you want to return "$B$7" as a string or do you want to return the contents of $B$7? Either:

Code:
=CELL("address",OFFSET(INDEX($V$2:$V$76,MATCH(MID(O8,1,1),$V$2:$V$76,0)+1),0,1))

... or ...

Code:
=OFFSET(INDEX($V$2:$V$76,MATCH(MID(O8,1,1),$V$2:$V$76,0)+1),0,1)

WBD
 
Upvote 0
Hi Ddibs,

Give one of these a try:
=OFFSET(INDEX($V$2:$V$76,MATCH(MID(O8,1,1),$V$2:$V$76,0)+1),0,1)
=OFFSET(INDIRECT(CELL("address",INDEX($V$2:$V$76,MATCH(MID(O8,1,1),$V$2:$V$76,0)+1))),0,1)

The first one may work, depending on the data.

The original formula was returning the cell reference as text, so it didn't know what to offset.
Using an INDIRECT changes the text into a readable cell reference.

Good luck,
Dan.
 
Upvote 0
Re: can the OFFSET reference be a formula?

No, my formula is a little different this part <style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'; color: #000000 } span.s1 {color: #006107 } span.s2 {color: #0057d6 } span.s3 {color: #ab30d6 } span.s4 {color: #a54a29 } </style>=CELL("address",INDEX($V$2:$V$76,MATCH(MID(O8,1,1),$V$2:$V$76,0)+1))

prints out the cell reference of a character I am searching for and it works

I then want to take the cell to the right of that selected cell so I place the above formula in the to OFFSET formula and then I get this "the formula you entered contains an error"
 
Upvote 0
Re: can the OFFSET reference be a formula?

<style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'; color: #000000 } span.s1 {color: #006107 } span.s2 {color: #0057d6 } span.s3 {color: #ab30d6 } span.s4 {color: #a54a29 } </style>=OFFSET(INDEX($V$2:$V$76,MATCH(MID(O8,1,1),$V$2:$V$76,0)),0,1)

This worked thank you all so much!

I was expecting a longer wait time, this was incredible!
 
Upvote 0
=OFFSET(INDIRECT(CELL("address",INDEX($V$2:$V$76,MATCH(MID(O8,1,1),$V$2:$V$76,0)+1))),0,1)
perfect solution as well thank you.
 
Upvote 0
Re: can the OFFSET reference be a formula?

No, my formula is a little different this part <style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'; color: #000000 } span.s1 {color: #006107 } span.s2 {color: #0057d6 } span.s3 {color: #ab30d6 } span.s4 {color: #a54a29 } </style>=CELL("address",INDEX($V$2:$V$76,MATCH(MID(O8,1,1),$V$2:$V$76,0)+1))

prints out the cell reference of a character I am searching for and it works

I then want to take the cell to the right of that selected cell so I place the above formula in the to OFFSET formula and then I get this "the formula you entered contains an error"

Suppose I have Amos in O8 and I have an A in V9. What must the formula you require do and where exactly?
 
Upvote 0

Forum statistics

Threads
1,215,029
Messages
6,122,757
Members
449,094
Latest member
dsharae57

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