hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,213
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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
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,213,495
Messages
6,113,992
Members
448,538
Latest member
alex78

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