Dynamic Formula Modification Help

Newbienew

Active Member
Joined
Mar 17, 2017
Messages
395
Office Version
  1. 2016
Platform
  1. Windows
I have a formula that I need to update to account for a modified entry. B4 may change depending on no requirements, C4 is dynamic based on what is in B4. If the entry in B4 starts with a 2 I need the C4 to multiply by 2 and if not just return what is supposed to return.

I attempted to use IF function but I keep having to change the Match function to -1 for greater than and the multiplication is 1.43, which I don't understand why.



2MK<100
VE<50
VE<50
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
c4 multiply what by 2 ???
=IF( Left(b4,1)*1=2, Cell * 2 , cell)
I times by 1 as often with left the result is text
or
=IF(LEFT(B4,1)="2",2,0)

Book3
ABCDE
1
2
3
42MK<100times x 2
5VE<50cell
6VE<50cell
Sheet1
Cell Formulas
RangeFormula
E4:E6E4=IF(LEFT(B4,1)="2","times x 2","cell")
 
Upvote 0
I want to apologize. I thought I posted the mini sheet that I had. Found out the mini sheet option would freeze my excel program.

This is what I have.

ASVAB CAL.xlsb
BC
4VE<50
5VE<50
6VE<50
RATINGS (2)
Cell Formulas
RangeFormula
C4:C6C4=IFERROR(INDEX(HOME!$A$3:$L$3,MATCH('RATINGS (2)'!B4,HOME!$A$2:$L$2,0)),0)




So if there is 2VE or 2 in front of any combination of letters I would like for it to mulitipy by 2 and if not just return the original value.
 
Upvote 0
Can you show us a mini sheet of 'HOME' range A2:L3 that produced the mini sheet shown above?
 
Upvote 0
Yes I can

ASVAB CAL.xlsb
ABCDEFGHIJKL
2GSARWKPCMKEIASMCAOVECSCT
3505050505050505050505070
HOME
 
Upvote 0
How about
Fluff.xlsm
ABC
1
2
3
42VE100
5VE50
62CT140
Master
Cell Formulas
RangeFormula
C4:C6C4=IFNA(INDEX(Home!$A$3:$L$3,MATCH(RIGHT(B4,2),Home!$A$2:$L$2,0)),0)*IF(ISNUMBER(--LEFT(B4)),LEFT(B4),1)
 
Upvote 1
Yes I can
Thanks

A bit unsure about what else might be possible in column B, but this may be another possibility.

Note that both @Fluff and I have changed 'RATINGS (2)'!B4 to just B4. Using the sheet name that the formula is on in a formula is unnecessary and can lead to incorrect results under some circumstances so should be avoided.

Newbienew.xlsm
ABC
1
2
3
42VE100
5VE50
62CT140
7XX0
RATINGS (2)
Cell Formulas
RangeFormula
C4:C7C4=IF(LEN(B4)=2,1,2)*IFNA(HLOOKUP(RIGHT(B4,2),HOME!$A$2:$L$3,2,0),0)
 
Upvote 1
Solution
I tried to mark both of them as the solutions but was not able to but

@Fluff Thank you so much for your aid.
@Peter_SSs Thank you as well. Yes I did notice you both change the formula. I changed to match what you have but when I was making the formula I bounced between pages and that happened. But I do get how it can mess up a formula
 
Upvote 0
You're welcome. Glad we could help. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,223,445
Messages
6,172,176
Members
452,446
Latest member
walkman99

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