Applying formula with merged cells

abdulhaque

Board Regular
Joined
Dec 2, 2015
Messages
63
Hi all,

I'm trying to apply my formula =IF(A2 <> "", LEFT(A2, LEN(A2) - 5), "") & " " & C2 to subsequent rows. I have merged cells in one of the columns, which doesn't work. Image 1 shows how it works currently. The formula is in column B. I need it to work like in image 2. Would I need to use VBA? If so, can I get some help please?

Image 1
https://i.imgsafe.org/3612148e88.png

Image 2
https://i.imgsafe.org/3613b0395b.png

Thanks
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Hi,

Try this but be aware. It's a given fact merged cells cause more issues than they ever solve.


Book1
ABC
1Pool NameRule NameMember
2Pool Name 1 PoolPool Name 1 Member1Member1
3Pool Name 1 Member2Member2
4Pool Name 1 Member3Member3
5Pool Name 2 PoolPool Name 2 Member4Member4
6Pool Name 3 PoolPool Name 3 Member5Member5
7Pool Name 3 Member6Member6
8Pool Name 3 Member7Member7
9Pool Name 3 Member8Member8
Sheet1
Cell Formulas
RangeFormula
B2=IF(LOOKUP("zzzzzz",$A$1:A2) <> "", LEFT(LOOKUP("zzzzzz",$A$1:A2), LEN(LOOKUP("zzzzzz",$A$1:A2)) - 5), "") & " " & C2
 
Upvote 0
Thanks it worked providing there's a pool name populated for the current rule name rows, otherwise it extracts the previous pool name and joins it with the current members. I guess that's the best that could be done using default functions. Much appreciated.

Quick question, how did you post the worksheets and formulas in the post above?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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