Simple IF

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,226
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
I know its simplest..still I need since I made mistake

Input Cell: B2 which can be EITHER of “d2” or “d3” or “d4” or “d5”. That’s All

Output Cell: D2:
IF B2=”d2” THEN D2=”k3
IF B2=”d3” THEN D2=”k4
IF B2=”d4” THEN D2=”k5
IF B2=”d5” THEN D2=”k6

How to accomplish?
I am using Excel 2007
 
How about
=INDIRECT("F"&RIGHT($B$2)+ROW(A1))
NO it is giving wrong answer as 0. It should be giving 'formula' =F3 in cell G2 for B2 containing text 'd2'
 
Last edited:
Upvote 0

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
NO it is NOT giving wrong answer.


Book1
BEFG
2d2abc2abc3
3abc3abc4
4abc4abc5
5abc5abc6
6abc6abc7
7abc7abc8
8abc8abc9
9abc9abc10
10abc10abc11
11abc11abc12
12abc12
13abc13
14abc14
15abc15
16abc16
work
Cell Formulas
RangeFormula
G2=INDIRECT("F"&RIGHT($B$2)+ROW(A1))
 
Upvote 0
You're welcome & please stop SHOUTING at people (using uppercase letters) it's considered rude.
 
Upvote 0
As this is a totally different question, please start a new thread.
Thanks
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

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