Need formula

noelmus

Board Regular
Joined
Dec 30, 2018
Messages
105
Hi,
I have cell C12 with a drop down list which are 1 & 2,3 & 4,5 & 6. I need that:
1. When I choose 1 & 2 from the drop down, cell E17 appears as METER 1 and cell H17 appears as METER 2.
2. When I choose 3 & 4 from the drop down, cell E17 appears as METER 3 and cell H17 appears as METER 4.
3. When I choose 5 & 6 from the drop down, cell E17 appears as METER 5 and cell H17 appears as METER 6.
Any help is appreciated.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Try this formula in E17:
Code:
=IF(C12>0,"METER " & C12-IF(ISEVEN(C12),1,0),"")
and this formula in H17:
Code:
=IF(C12>0,"METER " & C12+IF(ISODD(C12),1,0),"")
 
Last edited:
Upvote 0
Try
="Meter "&LEFT(C12,1)
="Meter "&RIGHT(C12,1)
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0
Sorry, I misunderstood your drop-down box. I thought it had the indivudual values 1-6.
 
Upvote 0
Excel 2010
CDEFGH
10
11
121 & 2
13
14
15
16
17METER 1METER 2
18
19

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
E17=IF($C$12="1 & 2","METER 1",IF($C$12="3 & 4","METER 3",IF($C$12="5 & 6", "METER 5","")))
H17=IF($C$12="1 & 2","METER 2",IF($C$12="3 & 4","METER 4",IF($C$12="5 & 6", "METER 6","")))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,217,342
Messages
6,136,002
Members
449,975
Latest member
ymmy

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