Nested If Statement

igmike

Board Regular
Joined
Feb 12, 2013
Messages
62
Office Version
  1. 2013
Platform
  1. Windows
I have attempted several functions Vlookup+IF, index/match. To complete step 1 in manipulating the given data for my purposes.

Sample data:


I no longer have the program that allows you to post excel data in a neat format to a forum post, nor could I find a reference in search. If someone could let me know, I can post data and desired solution.

Thanks in advance.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I've found the program, Excel Jeanie, though cannot find a working download link, it appears the link from excel-jeanie is broken.
 
Upvote 0
Thanks jtakw, I found an older version of Excel Jeanie.

My goal is to have the formula lookup in column B, the number next to VGA (possibilities include 100, 95+, 95, 90+, 90, 85+, and 85). From there it would take the sold price in column I, and place it in the appropriate column M-S.

Aside from Vlookup, Index/Match, I had also tried MID, Right, etc, however the placement of the number differ in columns. Help in the right direction would be appreciated.

Step 2, will be able to generate other prices for the specific data in columns M-S for missing sold prices based on several factors. (previous date sold) etc.



price-guide

BCDEFGHI
2TitlePlatformGradeFormatBidsAverage Sale PriceItems SoldTotal Sales
3NEW PlayStation 3 PS3 CALL of DUTY Black Ops Bundle 160GB VGA 85+ NM+Item ID: 272826824787Seller: 5***vPlaystation 3VGA 85+Fixed Price0$899.991$899.99
4NEW PlayStation 3 PS3 CALL of DUTY Black Ops Bundle 160GB VGA 85+ NM+Item ID: 272839937690Seller: 5***vPlaystation 3VGA 85+Fixed Price0$899.991$899.99
5NEW PlayStation 3 PS3 CALL of DUTY Black Ops Bundle 160GB VGA 85+ NM+Item ID: 272888440351Seller: 5***vPlaystation 3VGA 85+Fixed Price0$899.991$899.99
6Red Dead Redemption SPECIAL EDITION, New Sealed! Sony PS3 VGA 90+Item ID: 201778548898Seller: e***ePlaystation 3VGA 90+Store Fixed Price0$749.991$749.99

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

price-guide

MNOPQRS
1VGA Grade
210095+9590+9085+85
3
4
5
6

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Last edited:
Upvote 0
Hi again igmike,

Is there a reason you can not use the values in Column D (Grade) for the Lookup?
Also, if we're looking up Only the VGA grade (100, 95+, 90, etc.), and since you have multiple lines with the same Grade description, are the Prices you're looking for in Column "I" Always the same for the same "Grade"?
 
Last edited:
Upvote 0
Hi there Jt,

the data found in coulmn D does not exist with what I am given, I populated it trying MID formulas, however it would be very difficult to normalize the text. Thus yielding diff incorrect data.

I posted an array with index match isnumber search though I cant get excel 13 to let me enter to see if it will work.

Column A has different variables, games, sold dates and platforms, so only for that row will the corrospondeing grade be appropriate.

Further steps need to be taken into account once step 1 is completed.

Ill post here what ive come up with so far.
 
Last edited:
Upvote 0
May be this can help get you started.

You haven't answered my question regarding if given the Same Grade, will the Price Always be the Same, I'm assuming it is.


Book1
BCDEFGHI
2TitlePlatformGradeFormatBidsAverage Sale PriceItems SoldTotal Sales
3NEW PlayStation 3 PS3 CALL of DUTY Black Ops Bundle 160GB VGA 85+ NM+Item ID: 272826824787Seller: 5***vPlaystation 385+Fixed Price0$899.991$899.99
4NEW PlayStation 3 PS3 CALL of DUTY Black Ops Bundle 160GB VGA 85+ NM+Item ID: 272839937690Seller: 5***vPlaystation 385+Fixed Price0$899.991$899.99
5NEW PlayStation 3 PS3 CALL of DUTY Black Ops Bundle 160GB VGA 85+ NM+Item ID: 272888440351Seller: 5***vPlaystation 385+Fixed Price0$899.991$899.99
6Red Dead Redemption SPECIAL EDITION, New Sealed! Sony PS3 VGA 90+Item ID: 201778548898Seller: e***ePlaystation 390+Store Fixed Price0$749.991$749.99
7NEW PlayStation 3 PS3 CALL of DUTY Black Ops Bundle 160GB VGA 90 NM+Item ID: 272888440351Seller: 5***v90$859.99
8NEW PlayStation 3 PS3 CALL of DUTY Black Ops Bundle 160GB VGA 90+NM+Item ID: 272888440351Seller: 5***v90+$749.99
9NEW PlayStation 3 PS3 CALL of DUTY Black Ops Bundle 160GB VGA 100 NM+Item ID: 272888440351Seller: 5***v100$999.99
Sheet53
Cell Formulas
RangeFormula
D3=TRIM(LEFT(SUBSTITUTE(TRIM(SUBSTITUTE(MID(B3,SEARCH("VGA",B3)+3,255),"+","+ "))," ",REPT(" ",LEN(B3))),LEN(B3)))


D3 formula copied down to extract the VGA Grade as a Helper Column.


Book1
MNOPQRS
1VGA Grade
210095+9590+9085+85
3999.99749.99859.99899.99
Sheet53
Cell Formulas
RangeFormula
M3=IFERROR(VLOOKUP(TEXT(M2,"0"),$D3:$I9,6,0),"")


M3 formula copied across using Helper Column D.
 
Upvote 0
@jt

That looks good. was late/early when I read your response, the answer to your question is no, one of the same grade can and likely will sell at diff prices. Also, There are a few grades I failed to insert. U100, U95+, U95, U90, and 80+.

Then is step 3. I have yet to come up with the forumla to use, but it would involve date from last sold, and a few other factors. to determine prices of grades not provided.

Thanks again.
 
Upvote 0
Thanks for replying.

Well, seems like it would be difficult to help until you have something setup...

Need various samples of the Column B data with different "Grades" to try to extract.
If the same "Grade" is sold at different prices, "which" should be the one to report on the second table?

Sounds like you've got a few things to work out...........
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

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