Return a value based on another cell. IF statement?

MadHatsJess

New Member
Joined
Jul 12, 2017
Messages
27
Hi,

I have one column with something like the below;

A1

£100 deal
£200 deal
£300 deal

In B2 I need to return the value of the cell (depending on what is in A1)

Would I use an IF statement? (Cant get it to work)

IF A1 = £100 deal then return £100
IF A1 = £200 deal then return £200
IF A1 = £300 deal then return £300

Thanks in advance :)
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
This is just a work around. Ok ?
In Cell B2 just type =LEFT(A1,LEN(A1-4)
What you get in cell B2 would be just the value £whatever.
There is no limitation of having to enter just £100 deal or £200 deal or £300 deal here. You can easily enter say £5142 deal and cell B2 would just say £5142
Helps ??
 
Last edited:
Upvote 0
Hi,

Try these:


Book1
ABCD
1£100 deal£100100£100
2£200 deal£200200£200
3£300 deal£300300£300
4£3 deal£33£3
5£3000000 deal£30000003000000£3,000,000
6£3000 deal£30003000£3,000
7Result is TextResult as Real NumberResult as Real Number
8Formatted as currency £
Sheet105
Cell Formulas
RangeFormula
B1=SUBSTITUTE(A1,"deal","")
C1=MID(SUBSTITUTE(A1,"deal",""),2,15)+0
D1=MID(SUBSTITUTE(A1,"deal",""),2,15)+0
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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