Syntax with "IF" statement...




Trying to resolve a situation that I've got posted elsewhere on here;
maybe I can do it this way if someone can help me with the syntax for
using "IF".

Say that column G is numbered 1-5, and column H has values of 100, 133,
322, 440, 560.

I'll enter a number (1-5) in col A, and I want this to happen in col B,
and I'll express it in human language: If A2=3 then B2=322...If A1=5
then B1=560.

In other words, I post a number in A, then go search G for the same
number, then post the corresponding H value into B.

I've tried the syntax every way but the right way, I guess.


Thanks,
Garry


--
garry05
------------------------------------------------------------------------
garry05's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=29408
View this thread: http://www.excelforum.com/showthread.php?threadid=491451

.



Relevant Pages

  • Re: working with dates
    ... > figure this out but i'm not too sure on the syntax. ... > Hru48's Profile: ... Prev by Date: ...
    (microsoft.public.excel.misc)
  • Re: Charts wont update
    ... reading your post more carefully I guess my syntax does look ... pwermuth's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=24997 ... Prev by Date: ...
    (microsoft.public.excel.charting)
  • Re: Conditional formating help.
    ... Okay but I need the syntax for the third condition. ... JustMe602's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=27854 ... Prev by Date: ...
    (microsoft.public.excel)
  • Re: Using variables in Dynamic SQL
    ... Thank you for the posts and I have now managed to resolve the other ... My revised syntax is, ... DECLARE @StartDate datetime ... If anybody else knows how to resolve this or a workaround then please ...
    (microsoft.public.sqlserver.programming)
  • Re: How do I change FALSE values to 0?
    ... Standard IF syntax: ... MrShorty ... MrShorty's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=22181 ... Prev by Date: ...
    (microsoft.public.excel.misc)