Struggling to get multiple arguments to work in a formula

shina67

Board Regular
Joined
Sep 18, 2014
Messages
67
Hi All,

I have attached a link to the spreadsheet I am referring to:- https://www.dropbox.com/s/i5lvozes381hj18/Test Scan Mr.Excel.xlsm?dl=0

If the part from A1 "XPGLIDE" matches F3 then I want N3 to populate the same as A3, but the rest of K3 through to Z3 to return Zero.
Similar if A1 was changed to "25412AYERSROOF." and F4 matches the part "ROOF" then I want to populate X4 the same as A4 but the rest of K3 through to Z3 to return Zero.
As you can see from the spreadsheet there are 16 different variations (see row 1) that could possibly be in column F and hence could be in A1.
The formula in N3 is something I thought would work but unfortunately is not.
If there is a match I then need the same cell to populate the difference between cells AF and AI.

I hope this makes sense when you look at the spreadsheet.

I have googled and tried different various ways but I am at a dead end.
I hope one of you helpful people can help resolve this for me.

Thanks in advance.
 

Some videos you may like

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

James006

Well-known Member
Joined
Apr 4, 2009
Messages
3,680
Hi,

A couple of remarks regarding consistency between cells A1, F3 and N1 ...

A1 : 25412AYERSXPGLIDE
F3 : XPGLIDE
N1 : XPGLIDE

In cell N3 ... you can test following formula :

Code:
=IF(AND($F3=N$1,ISNUMBER(FIND($F3,$A$1))),$A3,"")

Hope this will help
 

shina67

Board Regular
Joined
Sep 18, 2014
Messages
67
Thanks James for your reply.

Your solution returns a zero for all. What I am wanting is for it to also return the value from $A3 if $F3=N$1


Hi,

A couple of remarks regarding consistency between cells A1, F3 and N1 ...

A1 : 25412AYERSXPGLIDE
F3 : XPGLIDE
N1 : XPGLIDE

In cell N3 ... you can test following formula :

Code:
=IF(AND($F3=N$1,ISNUMBER(FIND($F3,$A$1))),$A3,"")

Hope this will help
 

shina67

Board Regular
Joined
Sep 18, 2014
Messages
67

James006

Well-known Member
Joined
Apr 4, 2009
Messages
3,680

ADVERTISEMENT

Hello,

The proposed formula returns 6 ... in cell N3 ... :)
 

shina67

Board Regular
Joined
Sep 18, 2014
Messages
67
Hi James,

I am using the following formula which seems to work fine :-
=IF(AND($F3=SUBSTITUTE(N$1," ",""),$D3&$E3&$F3=$A$1),$A3,"")
The problem I now have is that when $A$1 is blank it does not remain at 6.
 

shina67

Board Regular
Joined
Sep 18, 2014
Messages
67
Thanks all for your help so far.
I now have a new problem.

I’m hoping you can help with a drag down of formula’s.
Row 3 works fine for what I need it to do. However when I drag the formula’s down and then insert the source data into row 4 column G through to column Z there becomes a problem and downwards.
If in A1 I input 25412AYERSXPGLIDE.. and then a quantity into A2, row 3 updates as it should.
Then if I input 25944ELLISXPVIEW. into A1 and a quantity into A2 row 4 won’t update as row 3 did. Also cells AK3 and AL3 go wrong.
Any help on this will be appreciated.
I have attached a link to the workbook.
https://www.dropbox.com/s/d3ya2v7ls4...Scan.xlsm?dl=0
 

James006

Well-known Member
Joined
Apr 4, 2009
Messages
3,680
Hi,

Sorry but the file you have added a link to ... does not hold the formula your are referring to ...???
 

Watch MrExcel Video

Forum statistics

Threads
1,109,201
Messages
5,527,386
Members
409,759
Latest member
KCH

This Week's Hot Topics

Top