Please identify my error

Zubair

Active Member
Joined
Jul 4, 2009
Messages
336
Office Version
  1. 2016
Platform
  1. Windows
Dear Experts,

I am applying the formula but its giving blank in cell D5:G5.

=IFERROR(IF(COLUMN(A1)-COLUMN(D1)+1=1,LEFT(INDEX($B$2:$B$11,MATCH($D$2,$A$2:$A$11,0)),2),IF(COLUMN(A1)-COLUMN(D1)+1=2,IF(AND($D$2>=5,$D$2<=10),RIGHT(INDEX($B$2:$B$11,MATCH($D$2,$A$2:$A$11,0)),2),""),"")),"")

What I need is in D5:G5 the Business Model based on selection of data validation in D2, in this case I am expecting DF in D6 and SF in E6 whereas F6:G6 blank, similarly if I select 10 in D2 I need CF & CO in D6 & E6, however 1 means DF in D6, 2 means DF D6, SF E6, 3 means DF, SF & CF in D6, E6 & F6, 4 means DF, SF, CF & CO in D6, E6 F6, G6.
1739789675242.png
 
Dear Experts,

I am applying the formula but its giving blank in cell D5:G5.

=IFERROR(IF(COLUMN(A1)-COLUMN(D1)+1=1,LEFT(INDEX($B$2:$B$11,MATCH($D$2,$A$2:$A$11,0)),2),IF(COLUMN(A1)-COLUMN(D1)+1=2,IF(AND($D$2>=5,$D$2<=10),RIGHT(INDEX($B$2:$B$11,MATCH($D$2,$A$2:$A$11,0)),2),""),"")),"")

What I need is in D5:G5 the Business Model based on selection of data validation in D2, in this case I am expecting DF in D6 and SF in E6 whereas F6:G6 blank, similarly if I select 10 in D2 I need CF & CO in D6 & E6, however 1 means DF in D6, 2 means DF D6, SF E6, 3 means DF, SF & CF in D6, E6 & F6, 4 means DF, SF, CF & CO in D6, E6 F6, G6.
View attachment 122438
Got the corrected formula,
=IF(COLUMN()=COLUMN($D$1),LEFT(INDEX($B$2:$B$11,MATCH($D$2,$A$2:$A$11,0)),2),IF(COLUMN()=COLUMN($E$1),IF(AND($D$2>=5,$D$2<=10),RIGHT(INDEX($B$2:$B$11,MATCH($D$2,$A$2:$A$11,0)),2),""),""))
 
Upvote 0
Solution

Forum statistics

Threads
1,226,771
Messages
6,192,918
Members
453,766
Latest member
Gskier

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