IF Statements

MarkAndrews

Well-known Member
Joined
May 2, 2006
Messages
1,970
Office Version
  1. 2010
Platform
  1. Windows
I know you can only nest 7 IF statements in a standard formula

My question is, How can i do more?

TIA
 
Mark

What do you want to do involving the IFs? Return a client ID given some other value? What's the other value? Is a VLOOKUP appropriate here?

Richard

If client ID = 10, Return the client name (just as a standard IF does)

I suppose I could use Vlookup off a table?
 
Upvote 0

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Mark

So why not use a VLOOKUP?

And why not give us some more information?:)

:( Thats all the info i can really Give Norie

I just want the IF Facility, but extend if from 7 to 22 options

Is it possible to nest more than 7 IF's in one IF Statement, if not i'll use a table and utilise Vlookup

Thanks
 
Upvote 0
Mark

You've hardly given us any information as far as I can see.

We don't know what data you have.

We don't know how that data, if it exists, is organised.

We don't actually know what you want to do.:)
 
Upvote 0
Here's a sample of the data, Column A contains the Client ID's

What i'm after doing is place an IF statement (containing 22 IF's) in Column K, which will return the corresponding client name to the client ID

Hope this is a little better on the explanation?

The data is sorted by StartDate, ascending
Abort Data.xls
ABCD
1ClientIDIntroducerIDMatterIDStartDate
2104056378503/01/06
3104056378703/01/06
4213356379003/01/06
5213356379103/01/06
6104056379203/01/06
7104056379303/01/06
8104056379503/01/06
9104056379603/01/06
101NULL56380003/01/06
11101552543903/01/06
1224256381303/01/06
13104056382103/01/06
14104056382303/01/06
15101556382603/01/06
1614NULL56382703/01/06
1714NULL56383103/01/06
1814NULL56384103/01/06
1914NULL56384203/01/06
2014NULL56384403/01/06
2114NULL56384703/01/06
2214NULL56384903/01/06
2311756386903/01/06
2415NULL56388303/01/06
25101556388803/01/06
2618NULL56389903/01/06
27101756390603/01/06
28233256391603/01/06
Jan
 
Upvote 0
So where is the client name data?
 
Upvote 0
So where is the client name data?

Sorry, On a sheet called "Workings"

A2-B23
What about posting a sample of theis "Workings" sheet?

Sorry

As requested
Abort Data.xls
ABCD
1ClientIDIntroducerID
21Halifax1
34Pru-New2
48STL3
59NatWest4
610GenericSAP5
711Virgin6
814WOL7
915WoolINT8
1016CAG9
1117NOR11
1218BBS12
1319RBS13
1420FirstActive(PAD)15
1521FirstActive(REM)17
1622OffsetNatWest(REM)18
1723OffsetRBS(REM)19
1824OffsetNatWest(PAD)20
1925OffsetRBS(PAD)21
2026Tesco22
2127Oneaccount23
2228IF24
2399GenericRem25
Workings
 
Upvote 0
So in cell K2 of 'Jan' sheet, what about
=VLOOKUP(A2,Workings!$A$2:$B$23,2,0)
and copy this down?
 
Upvote 0
Excellent, Could i do the same with the introducer too?
Abort Data.xls
DEFG
1IntroducerID
21Bradford&BingleyEstateAgents1
32NationalWestminsterHomeLoansLtd2
43BarclaysHomeFinance3
54CharcolOnline4
65LegalMove5
76LegalMovePhone6
87PrudentialBankingplc7
98GeorgeWimpeyUKLtd8
109Townends9
1111HammondsDirect10
1212Alliance&Leicesterplc11
1313FirstConveyancingLtd12
1415YourMove13
1517Halifax14
1618ResourceTechniquesLimited15
1719IntelligentFinance16
1820KeyworkersLiving17
Workings
 
Upvote 0

Forum statistics

Threads
1,215,720
Messages
6,126,436
Members
449,314
Latest member
MrSabo83

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