corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » excel help (couple of questions)


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author excel help (couple of questions)
Matt L
Member

Registered: 17th Apr 06
User status: Offline
17th Jan 13 at 19:57   View User's Profile U2U Member Reply With Quote

Im not sure if these are possible but

- is there a way to do some form of vlookup that doesnt require the other cell to be identical? so it looks for a cell that contains the word/phrase your looking for?

for example i would want it to look up 'elite' but the cell its looking into may say 'elite car care' but i would want it to find what ever is next to that cell.

also...

- is there a way to make the =left(a2,6) type formula to pick up however many letters before i space?

for example
wh vp10
wh vp8

I would just want the 'vp10' and ''vp8' bit, so i couldnt use 4 as it would give me a space in the one that only has 3 characters.

Cheers.
Brett
Premium Member

Avatar

Registered: 16th Dec 02
Location: Manchester
User status: Offline
17th Jan 13 at 20:06   View Garage View User's Profile U2U Member Reply With Quote

Probably something like *elite* for the first one?
Ian
Site Administrator

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Online
17th Jan 13 at 20:10   View Garage View User's Profile U2U Member Reply With Quote

You can substring the longer cell but it depends how you're cutting it down.

If you wanted the first 5 chars, use LEFT()

First word you can interpolate a FIND() function and go left of the space.

Second bit of the question, FIND() will do it. It returns an integer of the position of the specific search text.
Ian
Site Administrator

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Online
17th Jan 13 at 20:11   View Garage View User's Profile U2U Member Reply With Quote

In fact SEARCH() might be better as its not case sensitive.
Matt L
Member

Registered: 17th Apr 06
User status: Offline
17th Jan 13 at 21:05   View User's Profile U2U Member Reply With Quote

I dont think the seach/find ones will work... or i am not doing them properly.

if anyone can type a quick example to get this to work for me that would be great.

cell
A1 = elite car care
A2 = 7

C1 = elite
C2 - i want to show the value in A2 by looking up C1 within A1
Ian
Site Administrator

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Online
17th Jan 13 at 21:17   View Garage View User's Profile U2U Member Reply With Quote

Put the substring stuff in a cell first and see what that gives you, then you can see if you have a match.
Gaz
Member

Registered: 24th Aug 03
Location: Widnes, Cheshire
User status: Offline
17th Jan 13 at 22:16   View User's Profile U2U Member Reply With Quote

I might have a formula on a spreadsheet in work that will effectively do what you are asking. I'll try and remember to write it down for you.
Gaz
Member

Registered: 24th Aug 03
Location: Widnes, Cheshire
User status: Offline
17th Jan 13 at 22:17   View User's Profile U2U Member Reply With Quote

It might be best (if it's not to work specific) to host the document online and then we can take a look and try and fix it up for you
Chris
Premium Member

Avatar

Registered: 21st Sep 99
User status: Offline
18th Jan 13 at 00:01   View Garage View User's Profile U2U Member Reply With Quote

You want INSTR but would require VBA function.

Basically will give value where the match string ocurs in this case 1

so

elite ; INSTR(A1,C1)+LEN(C1)+2= 7
car ; INSTR(A1,C1)+LEN(C1)+2 = 11
A2H GO
Member

Registered: 14th Sep 04
Location: Stoke
User status: Offline
18th Jan 13 at 10:34   View User's Profile U2U Member Reply With Quote

quote:
Originally posted by Matt L
I dont think the seach/find ones will work... or i am not doing them properly.

if anyone can type a quick example to get this to work for me that would be great.

cell
A1 = elite car care
A2 = 7

C1 = elite
C2 - i want to show the value in A2 by looking up C1 within A1


I'm assuming the value you want to SUM is always a number(A2 in the example). In which case it's much more simple than above:

=SUMIF(A1,"*elite*",A2)

Where

A1 = the value you're looking for 'elite' in
A2 = the value you want to return

Note, it would be better if possible to have the value you want to return in B1 next to the lookup value and the formula in C1. Then you can drag it down.

[Edited on 18-01-2013 by A2H GO]
Matt L
Member

Registered: 17th Apr 06
User status: Offline
18th Jan 13 at 18:21   View User's Profile U2U Member Reply With Quote

that one wont work as it requires me typing the word elite, the spreadsheet i want to use it on will have shed load of suppliers names so would be pointless to set it up on every row.
Ste
Premium Member

Avatar

Registered: 5th Mar 03
Location: Taif, Saudi Arabia
User status: Offline
19th Jan 13 at 23:36   View Garage View User's Profile U2U Member Reply With Quote

Need to see data to have any idea to help! Upload so that we can have a play!


I would rather lose by a mile because i built my own car, than win by an inch because someone else built it for me.
Matt L
Member

Registered: 17th Apr 06
User status: Offline
21st Jan 13 at 13:46   View User's Profile U2U Member Reply With Quote

where can I upload an excel file?

ill have to knock one together tonight as its work related so will have to make one up.
Ste
Premium Member

Avatar

Registered: 5th Mar 03
Location: Taif, Saudi Arabia
User status: Offline
21st Jan 13 at 16:17   View Garage View User's Profile U2U Member Reply With Quote

loads of free cloud based sites out there. google drive is what i use.



I would rather lose by a mile because i built my own car, than win by an inch because someone else built it for me.

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
is there a program that...... chris_uk Geek Day 6 1906
16th Jun 05 at 00:47
by Dan B
 
Excel Help AndyKent Geek Day 3 1462
6th Oct 07 at 10:22
by aPk
 
need an excel like programme (for free) Shane Geek Day 12 1779
13th May 08 at 14:55
by pow
 
Microsoft Excel strick206 Geek Day 10 1487
6th Jul 11 at 14:46
by Sam
 
Excel 2011 annoyance Sam Geek Day 6 589
15th Dec 11 at 10:47
by Sam
 

Corsa Sport » Message Board » Off Day » Geek Day » excel help (couple of questions) 30 database queries in 0.0144541 seconds