Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sam Sam is offline
external usenet poster
 
Posts: 699
Default Vlookup with conditions

I'm trying to do a vlookup with a couple conditions, and I can't figure it
out. I'm sure the formula is relatively simple, I just can't figure out the
right language to use. Here is what my data looks like:

Sheet 1
Column A Column B Column C
Acct. #s Dollar amts. Description of purchase

Sheet 2:
(same)
Column A Column B Column C
Acct. # Dollar amts. Description of purchase
Trying to do vlookup on sheet 2 to find acct # and dollar amount, and pull
in description of purchase from sheet 1.

Why this isn't working: I have 2 problems. 1. I can't figure out how to
make it look for the acct and dollar amount together (because more than one
account might have a $10 purchase, for example) and 2. I'm dealing with data
from 2 different sources--one source includes cents, the other rounds to the
nearest dollar (is there a way to make the vlookup getting data from the
cents sheet round off, and recognize that $249.99 from sheet 1 is the same as
$250.00 on sheet 2?)

Thanks so much--any help is appreciated!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Vlookup with conditions

Try ... entered with Ctrl+Shift+Enter: you will gt {} brackets appear rounf
the formula if entered correctly.

in C2 on Sheet2 (assuming data starts row 2):

=INDEX(Sheet1!C1:C100,MATCH(1,(A2=Sheet1!A1:A100)* (B2=ROUND(Sheet1!B1:B100,0)),0))

retrieves description form Sheet1

I have assumed $249.49 will round (down) to $249

HTH

"Sam" wrote:

I'm trying to do a vlookup with a couple conditions, and I can't figure it
out. I'm sure the formula is relatively simple, I just can't figure out the
right language to use. Here is what my data looks like:

Sheet 1
Column A Column B Column C
Acct. #s Dollar amts. Description of purchase

Sheet 2:
(same)
Column A Column B Column C
Acct. # Dollar amts. Description of purchase
Trying to do vlookup on sheet 2 to find acct # and dollar amount, and pull
in description of purchase from sheet 1.

Why this isn't working: I have 2 problems. 1. I can't figure out how to
make it look for the acct and dollar amount together (because more than one
account might have a $10 purchase, for example) and 2. I'm dealing with data
from 2 different sources--one source includes cents, the other rounds to the
nearest dollar (is there a way to make the vlookup getting data from the
cents sheet round off, and recognize that $249.99 from sheet 1 is the same as
$250.00 on sheet 2?)

Thanks so much--any help is appreciated!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sam Sam is offline
external usenet poster
 
Posts: 699
Default Vlookup with conditions

This worked great--thanks!

"Toppers" wrote:

Try ... entered with Ctrl+Shift+Enter: you will gt {} brackets appear rounf
the formula if entered correctly.

in C2 on Sheet2 (assuming data starts row 2):

=INDEX(Sheet1!C1:C100,MATCH(1,(A2=Sheet1!A1:A100)* (B2=ROUND(Sheet1!B1:B100,0)),0))

retrieves description form Sheet1

I have assumed $249.49 will round (down) to $249

HTH

"Sam" wrote:

I'm trying to do a vlookup with a couple conditions, and I can't figure it
out. I'm sure the formula is relatively simple, I just can't figure out the
right language to use. Here is what my data looks like:

Sheet 1
Column A Column B Column C
Acct. #s Dollar amts. Description of purchase

Sheet 2:
(same)
Column A Column B Column C
Acct. # Dollar amts. Description of purchase
Trying to do vlookup on sheet 2 to find acct # and dollar amount, and pull
in description of purchase from sheet 1.

Why this isn't working: I have 2 problems. 1. I can't figure out how to
make it look for the acct and dollar amount together (because more than one
account might have a $10 purchase, for example) and 2. I'm dealing with data
from 2 different sources--one source includes cents, the other rounds to the
nearest dollar (is there a way to make the vlookup getting data from the
cents sheet round off, and recognize that $249.99 from sheet 1 is the same as
$250.00 on sheet 2?)

Thanks so much--any help is appreciated!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Vlookup with conditions Curtis Excel Worksheet Functions 6 November 19th 06 03:18 AM
VLOOKUP with 2 conditions RSantos Excel Discussion (Misc queries) 5 June 26th 06 06:11 PM
VLOOKUP w/ 2 or more conditions Jaye Excel Worksheet Functions 1 March 17th 06 12:36 AM
Vlookup with 3 or more conditions LondonLion Excel Worksheet Functions 1 December 28th 05 04:02 PM
Vlookup considering 2 conditions emandell Excel Worksheet Functions 2 December 1st 05 10:18 AM


All times are GMT +1. The time now is 10:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright Đ2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"