array if problem

MartinL

Well-known Member
Joined
Oct 16, 2008
Messages
1,141
Office Version
  1. 365
Platform
  1. Windows
ABCDE
1TypeBlackWhiteGreyANSWER
2single1 x 5mBlack
3multi1 x 5ml1 x 5ml1 x 5 mlmulti
4single1 x mlGrey
5twin2 x 5mlWhite

<tbody>
</tbody>











I need to find the answer to E2:E5 by

If type = multi then Answer =multi
else ANSWER is the value of B2:D2 where the Active cell row is not blank

Hope this makes sense.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Does this work for you? :)


Excel 2010
ABCDE
1TypeBlackWhiteGreyAnswer
2single1 x 5mBlack
3multi1 x 5ml1 x 5ml1 x 5 mlmulti
4single1 x mlGrey
5twin2 x 5mlWhite
Sheet1
Cell Formulas
RangeFormula
E2=IF(A2="Multi", A2, INDEX($B$1:$D$1, MATCH("*", B2:D2, 0)))


/AJ
 
Upvote 0
If you don't mind I'd like to add to this question
In column F
Sum the 1st digits in each row so
F2 = 1
F3 = 3
F4 = 1
F5 = 2
 
Upvote 0
=SUM(IFERROR(LEFT(B2:D2,1)+0,0))
array entered with Ctrl+Shift+Enter
 
Upvote 0
Ohhh so close I left the IFERROR out thanks Rory
 
Upvote 0

Forum statistics

Threads
1,215,370
Messages
6,124,526
Members
449,169
Latest member
mm424

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