Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-18-2012, 02:22 PM
Jamal NUMAN Jamal NUMAN is offline Using if statement many times! Windows 7 64bit Using if statement many times! Office 2010 64bit
Expert
Using if statement many times!
 
Join Date: Nov 2010
Posts: 615
Jamal NUMAN is on a distinguished road
Question Using if statement many times!

Using if statement many times!
I’ve two Cells, A1 and B1. I wanted value of B1 to take a value based on the value of A1 in accordance with the table below:
Item
Kg/m2
House
250
Offices
300
Garage
600
Holes
600
Stores
1,000


Commercial
500
For example, if the A1 takes the “Stores” value then B1 takes the “1000”. To accomplish this, I constructed the If statement below and worked very well:
=IF(O2=B3,C3,IF(O2=B4,C4,IF(O2=B5,C5, IF(O2=B6, C6, IF(O2=B7, C7, IF(O2=B8, C8))))))
My point is:
What if we have long table that may contain 100 rows?
Is the “If Statement” practical to perform this kind of work?
Is there other command to help this issue?
Thank you in advance,
Regards
Jamal
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
IF Statement and Macros kannon Excel Programming 2 01-06-2012 02:51 AM
Using if statement many times! What IF statement required dr4ke Excel 8 09-01-2011 07:41 AM
Using if statement many times! Help with IF Statement limpbizkit Excel 4 02-24-2011 09:16 PM
Using if statement many times! if statement piper7971 PowerPoint 1 08-19-2010 07:10 AM
Using if statement many times! Help with IF statement! CPelkey Word 1 04-12-2010 09:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:00 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft